-
Creat google developer profile https://developers.google.com/profile/u/me/dashboard
-
Enable advanced google services https://developers.google.com/apps-script/guides/services/advanced
-
Enable advanced services https://developers.google.com/apps-script/guides/services/advanced#enable_advanced_services
3.1. Create a apps script project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puzzle = "004006079000000602056092300078061030509000406020540890007410920105000000840600100" | |
def line_to_grid(values): | |
grid = [] | |
for i in range(0,9): | |
grid.append(list(map(lambda x: int(x), list(values[i*9:(i+1)*9])))) | |
return grid | |
def grid_to_line(grid): | |
line = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Address(db.Document): | |
config_collection_name = "address" | |
street_address = db.StringField() | |
city = db.StringField() | |
state_province = db.StringField() | |
country = db.StringField() | |
class User(db.Document): | |
config_collection_name = "user" | |
name = db.StringField() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
kind: Pod | |
apiVersion: v1 | |
metadata: | |
name: test | |
spec: | |
containers: | |
- name: busybox | |
image: busybox | |
args: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: nginx-conf | |
data: | |
nginx.conf: | | |
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
host_log="/home/pradeep/scripts" | |
install_log="$host_log/tmp.log" | |
# Color logging | |
log() { | |
# Color Logging | |
RED="\033[1;31m" # ERROR | |
GREEN="\033[1;32m" # INFO | |
YELLOW="\033[33;33m" # WARN | |
BLUE='\e[0;34m' # DEBUG |