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
.icon-heart:before { content: '\2665'; } /* '♥' */ | |
.icon-cog:before { content: '\2699'; } /* '⚙' */ | |
.icon-edit:before { content: '\270d'; } /* '✍' */ | |
.icon-comment:before { content: '\e718'; } /* '' */ | |
.icon-left-open:before { content: '\e75d'; } /* '' */ | |
.icon-right-open:before { content: '\e75e'; } /* '' */ | |
.icon-left-open-big:before { content: '\e765'; } /* '' */ | |
.icon-right-open-big:before { content: '\e766'; } /* '' */ | |
.icon-facebook-rect:before { content: '\f301'; } /* '' */ | |
.icon-twitter-bird:before { content: '\f303'; } /* '' */ |
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 os | |
upDir = '/Users/sambao21' | |
rootDir = '{0}/ipad_pics'.format(upDir) | |
y = 100 | |
for dirName,subdirList,fileList in os.walk( rootDir ) : | |
print "Found directory:" , dirName | |
x = 0 | |
for fname in fileList: | |
path = dirName + '/' |
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 | |
""" | |
Install a package from your local pip download cache without having to touch | |
the 'net at all. | |
You'll need to be using a pip download cache; that is, you'll need the | |
following in your ~/.pip/pip.conf: | |
[install] |
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/zsh | |
# This hook is run after a new virtualenv is activated. | |
echo "Do you want to install ipython & bpython?" | |
select yn in "Yes" "No"; do | |
case $yn in | |
Yes ) | |
pip install ipython bpython; | |
easy_install readline; | |
break;; | |
No ) |
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 () { | |
var RealXMLHttpRequest = XMLHttpRequest; | |
var FakeXMLHttpRequest = function () { | |
this._req = new RealXMLHttpRequest(); | |
}; | |
FakeXMLHttpRequest.prototype = { | |
abort: function () { | |
this._req.abort.apply(this._req, arguments); | |
}, | |
getAllResponseHeaders: function () { |
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
javascript: var i = 0; while (i<=69) { | |
localStorage.setItem('level_star_'+i,'3'); i++; | |
} | |
window.location.reload(); |
NewerOlder