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
brew "ack" | |
brew "archey" | |
brew "bash" | |
brew "bash-completion" | |
brew "cask" | |
brew "colordiff" | |
brew "django-completion" | |
brew "emacs" | |
brew "fb303" | |
brew "fbthrift" |
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
sudo apt-get install aptitude build-essential compizconfig-settings-manager curl dkms dselect gconf-editor terminator vim xclip |
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
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=erasedups:ignorespace | |
HISTTIMEFORMAT="%H:%M " | |
# append to the history file, don't overwrite it | |
shopt -s histappend | |
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) |
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
my_integer = 2 | |
my_float = 3.6 | |
my_result= my_integer * my_float | |
#print my_result | |
my_string = "Hello World" | |
my_string = my_string + "\n" | |
#print my_string | |
hundred=100 | |
#print my_string * hundred |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
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
// PARSE THE URL | |
var QueryString = function () { | |
// This function is anonymous, is executed immediately and | |
// the return value is assigned to QueryString! | |
var query_string = {}; | |
var query = window.location.search.substring(1); | |
var vars = query.split("&"); | |
for (var i=0;i<vars.length;i++) { | |
var pair = vars[i].split("="); | |
// If first entry with this name |
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 PIL | |
import PIL.JpegImagePlugin | |
from PIL import Image | |
from PIL import ImageChops | |
from collections import namedtuple | |
from Counter import Counter | |
from operator import itemgetter, mul, attrgetter | |
from colormath.color_objects import RGBColor | |
import colorsys |
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 csv | |
from github2.client import Github | |
# api settings for github | |
git_username = 'your_git_username' | |
git_api_token = 'your_git_api_token' | |
git_repo = 'username/repo_name' | |
# import all issues as this story type | |
pivotal_story_type = 'Bug' |
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 following options will be passed to all MySQL clients | |
[client] | |
#password = your_password | |
port = 3306 | |
socket = /var/run/mysqld/mysqld.sock | |
# Here follows entries for some specific programs | |
# The MySQL server | |
[mysqld] |
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
<mus_catalogue> | |
<rectype>mus_catalogue</rectype> | |
<sys_id>O81405</sys_id> | |
<mus_obj_images_field_data> | |
<_>2006BK5699</_> | |
<_>2010EG9864</_> | |
<_>2010EG9861</_> | |
<_>2010EG9860</_> | |
<_>2010EG9859</_> | |
<_>2010EE8765</_> |
NewerOlder