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 python | |
import argparse | |
import tempfile | |
import os | |
from boto.s3.connection import S3Connection | |
parser = argparse.ArgumentParser(description='description') | |
parser.add_argument('bucket') | |
args = parser.parse_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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Symbol List Banned Class Instance</string> | |
<key>scope</key> | |
<string>source.js meta.class.instance</string> | |
<key>settings</key> | |
<dict> |
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
# ===================================================================== | |
# File definitions | |
# ===================================================================== | |
js = [ | |
{ | |
:target => "target.js", | |
:minify => true, | |
:files => [ | |
"source1.js", | |
"source2.js", |
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
[alias] | |
d = diff | |
st = status -sb | |
co = checkout | |
ci = commit | |
br = branch | |
ps = !"git pull && git st" | |
l = log --name-status --abbrev-commit | |
ls = git log --name-status --abbrev-commit --pretty="%n%Cgreen%h%Creset | %cd | %Cblue%an%Creset" | |
p = push |
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
# --------------------------------------------------------------------- | |
# colorize the prompt | |
# --------------------------------------------------------------------- | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \[\1\]/' | |
} | |
GREEN_BOLD="\[\e[32;1;32m\]" | |
CLEAR="\[\e[m\]" | |
YELLOW="\[\033[0;33m\]" | |
export PS1="\u:$GREEN_BOLD\W$CLEAR$YELLOW\$(parse_git_branch)$CLEAR \$ " |
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
git tag release-`date +"%Y%m%d"` && git push origin release-`date +"%Y%m%d"` |
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
// closures | |
(function($, Drupal, drupalSettings) { | |
var snow_base = 10; | |
Drupal.behaviors.snowman = { | |
attach: function() { | |
// can access $, Drupal, drupalSettings | |
} |
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 python | |
import argparse | |
import sh | |
import re | |
import os | |
def verbose(message, options={}): | |
"""Display a message if we are using verbose mode""" | |
if 'verbose' not in options or not options.verbose: |
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 | |
# create an empty shell module | |
if [[ $# -ne 1 ]]; then | |
echo 'Usage: drupal_make_module.sh [module_name]' | |
exit 1 | |
fi | |
if [[ ! -d sites/all/modules ]]; then |
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
import sublime, sublime_plugin | |
import re | |
class FoldFunctionsCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
# find things marked as a meta.function | |
functions = self.view.find_by_selector('meta.function.php') | |
print "FoldFunctions: functions found: %d" % len(functions) | |
# loop through those functions and figure out what region that they | |
# take up. |