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
| #!/usr/bin/env python3 | |
| import os | |
| import re | |
| import argparse | |
| ACCOUNT_FILE_NAME_EX = re.compile(r'AccountTransactions\d+.csv') | |
| CARD_FILE_NAME_EX = re.compile(r'CardTransactions\d+.csv') | |
| PAYMENT_LINE_EX = re.compile(r'^\d{2}/\d{2}/\d{4},PAYMENT - THANK YOU,') | |
| TRANSACTION_LINE_EX = re.compile(r'^\t\t\t\t\t\t\t\t\t\t\t') |
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
| #!/usr/bin/env bash | |
| updateRate=1 | |
| shutdown() { | |
| updateRate=0.2 | |
| for pid in $(jobs -p); do | |
| pkill -TERM -P "$pid" |
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
| #!./venv/bin/python3 | |
| import os | |
| import sys | |
| import subprocess | |
| from flask_migrate import MigrateCommand | |
| from flask_script import Manager, Command, Option | |
| BASE_DIR = os.path.dirname(os.path.abspath(__file__)) |
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
| #!/usr/bin/env bash | |
| targetVersion="$1" | |
| if [ "$1" == "" ]; then | |
| echo "Usage: $0 <buildToolsVersion>"; | |
| else | |
| find \ | |
| node_modules \ | |
| -type f \ |
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
| declare module "react-native-fbsdk" { | |
| export interface LoginResult { | |
| isCancelled: boolean, | |
| grantedPermissions?: Array<string>, | |
| declinedPermissions?: Array<string>, | |
| } | |
| export type DefaultAudience = 'friends' | 'everyone' | 'only_me'; | |
| export type LoginBehaviorIOS = 'native' | 'browser' | 'system_account' | 'web'; |
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/sh | |
| exec scala "$0" "$@" | |
| !# | |
| object HelloWorld { | |
| def main(args: Array[String]) { | |
| println("Hello, world! " + args.toList) | |
| } | |
| } | |
| HelloWorld.main(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
| ALL_PIDS=() | |
| on_die() { | |
| for pid in "${ALL_PIDS[@]}"; do | |
| echo "Killing $pid..." | |
| kill -9 $pid | |
| done | |
| } | |
| add() { |
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
| from zmq import zmq_version_info; print zmq_version_info() |
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 | |
| # **** You may add `exec` **** | |
| # eg. | |
| # exec python manage.py runserver 0.0.0.0:9000 |
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 | |
| # Configs | |
| MY_HOST='localhost' # the host of this script | |
| BACKUP_MATRIX=( | |
| "localhost;userName;password;dbName" | |
| ) |