View sync_gsheets_app_script.js
This file contains 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
function copySheets() { | |
sheetIDsToUpdate = [ | |
// [sourceID, destID] | |
["source_google_sheets_id", "dest_google_sheets_id"] | |
] | |
for (let i = 0; i < sheetIDsToUpdate.length; i++) { | |
sourceID = sheetIDsToUpdate[i][0] | |
destID = sheetIDsToUpdate[i][0] |
View docker-compose.yaml
This file contains 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
version: '3.7' | |
services : | |
postgres: | |
image: postgres:latest | |
volumes: | |
- infra-postgres:/var/lib/postgresql/data | |
ports: | |
- "5432:5432" | |
environment: | |
POSTGRES_USER: postgres |
View docker-compose-kafka.yaml
This file contains 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
version: "3" | |
services: | |
zookeeper: | |
image: 'bitnami/zookeeper:latest' | |
ports: | |
- '2181:2181' | |
environment: | |
- ALLOW_ANONYMOUS_LOGIN=yes | |
kafka: | |
image: 'bitnami/kafka:latest' |
View init.vim
This file contains 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
:set number | |
:set autoindent | |
:set tabstop=4 | |
:set shiftwidth=4 | |
:set smarttab | |
:set softtabstop=4 | |
:set mouse=a | |
call plug#begin() |
View abstract_factory.java
This file contains 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
// Formally, the abstract factory pattern is defined as defining an interface to create families of related or dependent objects | |
// without specifying their concrete classes. | |
public interface IEngine { | |
void start(); | |
} | |
public class F16Engine implements IEngine { | |
@Override |
View BigInt.cpp
This file contains 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
/* | |
###################################################################### | |
####################### THE BIG INT ########################## | |
*/ | |
const int base = 1000000000; | |
const int base_digits = 9; | |
struct bigint { | |
vector<int> a; | |
int sign; | |
/*<arpa>*/ |