start new:
tmux
start new with session name:
tmux new -s myname
from flask import Flask, request, redirect, url_for, session | |
from rauth.service import OAuth1Service | |
from webbrowser import open | |
import configit | |
config = configit.conf_from_file('development.py') | |
domain = config.magento.domain | |
magento = OAuth1Service( |
import requests | |
def log(): | |
url = 'https://www.logyourcommute.org/cac/accesscontrol.action' | |
data={'idUser': REDACTED, | |
'idPassword': REDACTED, | |
'action': 'login', | |
'idActivation': 'null', | |
'Submit': 'Log On >>'} |
#!/usr/bin/python | |
def problem40(): | |
""" | |
http://projecteuler.net/problem=40 | |
An irrational decimal fraction is created by concatenating the positive integers: | |
0.123456789101112131415161718192021... | |
It can be seen that the 12th digit of the fractional part is 1. |
# determine if dual monitors | |
tell application "Finder" | |
set bnds to bounds of window of desktop | |
set dualmonitors to item 3 of bnds > 1440 | |
end tell | |
tell application "campfire" | |
activate | |
# { left of screen to left edge, | |
# top of screen to top edge, |
#!/usr/bin/python | |
def prune_hook(branch): | |
import requests | |
import re | |
match = re.match('sq-([0-9]+).*', branch) | |
if not match: | |
print('Unable to find jira ticket for branch {}'.format(branch)) | |
return False |
require 'google/api_client' | |
require 'launchy' | |
load 'auth.rb' | |
def client | |
@client | |
end | |
def drive | |
@drive |
--ignore-dir=tmp |
We few developers of SalesLoft, in Order to form a more perfect Platform, do ordain and establish this Charter for the Gainmakerz of SalesLoft.
#!/bin/sh | |
mkdir -p ~/.vim/autoload ~/.vim/bundle && \ | |
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim && \ | |
cd ~/.vim/bundle && \ | |
git clone git@github.com:scrooloose/nerdtree.git && \ | |
git clone git@github.com:scrooloose/syntastic.git && \ | |
git clone git@github.com:isRuslan/vim-es6.git && \ | |
git clone git@github.com:slim-template/vim-slim.git && \ | |
git clone git@github.com:wincent/command-t.git && \ |