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
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< # | |
# ExactTarget API | |
# Author: Aaron Ghent | |
# Libraries Needed: suds | |
# CLI Install: ( pip install suds ) | |
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< # | |
from django.conf import settings | |
from suds.client import Client |
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/env python | |
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< # | |
# ssh - simple ssh2 wrapper | |
# Author: Aaron Ghent | |
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< # | |
# | |
# import ssh | |
# client = ssh.Connection(host='example.com', username='root', password='default') | |
# client.execute('ls') | |
# client.close() |
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/env python | |
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< # | |
# Spinner - command line spinning for times of patience | |
# Author: Aaron Ghent | |
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< # | |
import sys | |
class Spinner(object): | |
symbols = list('-\|/') |
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/env python | |
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< # | |
# linkdump - crawls a site and generates a list of links | |
# Author: Aaron Ghent | |
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< # | |
import os | |
import re | |
import sys | |
import urllib2 |
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
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< # | |
# Sync's models against database | |
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< # | |
from cStringIO import StringIO | |
import sys | |
import re | |
import os | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") |
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
var get = Ember.get; | |
var forEach = Ember.EnumerableUtils.forEach; | |
/** | |
The EmbeddedRecordsMixin allows you to add embedded record support to your | |
serializers. | |
To set up embedded records, you include the mixin into the serializer and then | |
define your embedded relations. | |
```js |
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
# p4merge for 64 bit | |
wget http://www.perforce.com/downloads/perforce/r13.4/bin.linux26x86_64/p4v.tgz | |
# p4merge for 32 bit | |
# wget http://www.perforce.com/downloads/perforce/r13.4/bin.linux26x86/p4v.tgz | |
tar zxvf p4v.tgz | |
sudo cp -r p4v-* /usr/local/p4v/ | |
sudo ln -s /usr/local/p4v/bin/p4merge /usr/local/bin/p4merge |
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
[ui] | |
merge = p4merge | |
[extensions] | |
hgext.extdiff = | |
[extdiff] | |
cmd.p4diff = p4merge | |
[tortoisehg] |
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
/** | |
* @name: Modal Mixin | |
* @framework: Ember.JS | |
* @author: Aaron Ghent | |
*/ | |
App.ModalMixin = Ember.Mixin.create({ | |
defaultModal: 'modal', | |
modalsOpen: {}, | |
actions: { |
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
/** | |
* @main EmberArrayAsync | |
*/ | |
/** | |
* forEachAsync iterates over a large array gradually. The function | |
* will process items in the array for a given number of ms, stop iterating for | |
* a given wait time, then proceed and wait until the iteration is complete. | |
* | |
* @method forEachAsync |
OlderNewer