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
[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
# ===================================================================== | |
# 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
<?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
#!/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
(function($){ | |
$(document).ready(function(){ }); | |
})(jQuery); |
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
(function($){ | |
$(document).ready(function(){ | |
$('.section-header').each(function(){ | |
var $this = $(this); | |
// use .add() and .nextUntil() to get both the .section-header | |
// and .section-item elements into a single set for our .wrapAll() call | |
$this.add($this.nextUntil('.section-header', '.section-item')) | |
.wrapAll('<div class="section-container"></div>'); |
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
<div class="container"> | |
<div class="section-header"><h3>Header</h3></div> | |
<div class="section-item">...</div> | |
<div class="section-item">...</div> | |
<div class="section-item">...</div> | |
<div class="section-header"><h3>Header</h3></div> | |
<div class="section-item">...</div> | |
<div class="section-item">...</div> |
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
// remove the ajax-processed class from the element so that | |
// attachBehaviors() will update the element | |
$('#my-element-id').removeClass('ajax-processed'); | |
// now re-attach the behaviors to this element | |
Drupal.attachBehaviors($('#my-element-id')); |
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 | |
""" | |
workTime.py | |
Coded by: Rob Ballou ([email protected]) | |
Calculates the number of hours that have passed | |
in a work day (starting at 8:30). | |
The start time can be changed by passing the hour and min |