Grid layout with margins only on the middle.
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
class FeatureFlag | |
def self.allow_comments? | |
MomConfig['COMMENTS_SECTION_AVAILABLE'] == 'true' | |
end | |
end |
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
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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
#!/usr/bin/python | |
import base64 | |
import hashlib | |
result = base64.b64encode(hashlib.sha1("test").digest()) | |
print result |
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
" enable syntax highlighting | |
syntax enable | |
" show line numbers | |
set number | |
" set tabs to have 4 spaces | |
set ts=4 | |
" indent when moving to the next line while writing code |
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
import time | |
import os | |
import csv | |
from datetime import datetime | |
from sqlalchemy import create_engine | |
from googleapiclient import discovery | |
from oauth2client.client import SignedJwtAssertionCredentials | |
from googleapiclient.http import MediaFileUpload | |
client_email = os.environ["BQ_CLIENT_EMAIL"] |
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
{ | |
"fmt_cmd": [ | |
"goimports" | |
], | |
"env": { | |
"GOPATH": "$HOME/Code/go", | |
"PATH": "$GOPATH/bin:$PATH" | |
}, | |
"comp_lint_enabled": true, | |
"comp_lint_commands": [ |
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
MAILCHECK=0 | |
# Workspace | |
WORKSPACE="$HOME/w" | |
alias w="cd ${WORKSPACE}" | |
export PATH="$PATH:$WORKSPACE/bin" |
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=$1 | |
if [ -z $VERSION ]; then | |
VERSION="3.5.0" | |
fi | |
curl -OL https://github.com/google/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-linux-x86_64.zip | |
# Unzip | |
unzip protoc-${VERSION}-linux-x86_64.zip -d protoc3 |
OlderNewer