As configured in my dotfiles.
start new:
tmux
start new with session name:
| # Install Docker | |
| curl -sSL https://get.docker.com/ | sh | |
| # Install Compose | |
| curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose |
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "title": "FixFit API", | |
| "description": "Promote healthy lifestyle in a fun way!", | |
| "version": "1.0.0" | |
| }, | |
| "host": "api.fixfit.com", | |
| "schemes": [ | |
| "https" |
| from django.conf import settings | |
| import elasticsearch | |
| from elasticsearch.helpers import scan | |
| from zopim.util.es_lib import BulkIndexerV2 | |
| bulk = BulkIndexerV2() | |
| es1 = elasticsearch.Elasticsearch(['esproxy.zopim.net:80']) | |
| es2 = elasticsearch.Elasticsearch(settings.ES_HOSTS) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| import sys | |
| N = int(sys.stdin.readline()) | |
| radiuses = [int(i) for i in sys.stdin.readline().replace('\n', '').split(' ')] | |
| print radiuses | |
| M = int(sys.stdin.readline()) | |
| points = [] | |
| for i in range(M): | |
| points.append( | |
| [int(i) for i in sys.stdin.readline().replace('\n', '').split(' ')] |
| from itertools import combinations | |
| N,l = map(int,raw_input().split()) | |
| sets = [] | |
| idx = dict((i, i) for i in range(N)) | |
| for i in xrange(l): | |
| a,b = map(int,raw_input().split()) |
| memo_array = {} | |
| def stringReductionHelper(a): | |
| if len(a) == 1: | |
| memo_array[1] = (a, 1) | |
| return memo_array[1] | |
| if memo_array.get(len(a[:-1])): | |
| prevChar, prevNum = memo_array.get(len(a[:-1])) | |
| else: | |
| prevChar, prevNum = stringReductionHelper(a[:-1]) |
| import sys | |
| A, B, N = [int(i) for i in sys.stdin.readline().split(' ')] | |
| a_n = A | |
| a_n_1 = B | |
| t = 2 | |
| while t < N: | |
| i = a_n |
| import sys | |
| import numpy | |
| import array | |
| factors, numTraining = map(int, sys.stdin.readline().split(' ')) | |
| trainSets = [] | |
| for i in range(numTraining): | |
| trainSets.append(map(float, sys.stdin.readline().split(' '))) |
| import fileinput | |
| inputs = fileinput.input() | |
| input_vals = [] | |
| for n in inputs: | |
| input_vals.append(n.replace('\n', '')) | |
| numTestCases = int(input_vals[0]) |