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
USERNAME = 'your_username' | |
EMAIL = '[email protected]' | |
PASSWORD = 'yourpassword' | |
import urllib as u | |
import urllib2 as u2 | |
import re | |
from lxml import etree as e3 | |
total = -1 | |
del_ids = [] | |
i = 0 |
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
[Default Text] | |
FileNameExtensions=txt; text; wtx; log; asc; doc; diz; nfo | |
Default Style=font:Consolas; size:10; fore:#F8F8F2; back:#272822 | |
Margins and Line Numbers=size:-2; fore:#BCBCBC; back:#3B3A32 | |
Matching Braces=size:+1; bold; fore:#000000; back:#FD971F | |
Matching Braces Error=size:+1; bold; fore:#F8F8F0; back:#F92672 | |
Control Characters (Font)=size:-1 | |
Indentation Guide (Color)=fore:#A0A0A0 | |
Selected Text (Colors)=fore:#F8F8F2; back:#49483E; eolfilled | |
Whitespace (Colors, Size 0-5)= |
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 Autocomplete = Backbone.View.extend({ | |
render: function() { | |
var choices = this.options.choices, | |
selected = this.options.selected, | |
iterator = this.options.iterator, | |
label = this.options.label, | |
allowDupes = this.options.allowDupes, | |
$el = $(this.el); | |
$el.autocomplete({ | |
source: function(request, response) { |
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
javascript:(function(){if(typeof localStorage.turl=="undefined")localStorage.turl=decodeURIComponent(document.querySelector('#posts > li:last-child .post_controls a[href^="/reblog"]').href.split("=")[1]).replace("?lite","");else{var a=localStorage.turl,b=confirm("Do you want to go to saved position: "+a+"?");localStorage.removeItem("turl");if(b)location.href=a}})(); |
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
try: | |
# do something | |
except RequestError, response: | |
# handle exception | |
# response is an object | |
# dir(response) == ['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__getitem__', '__getslice__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setstate__', '__str__', '__weakref__', 'args', 'body', 'headers', 'message', 'reason', 'status'] |
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
regsvr32 /i browseui.dll | |
regsvr32 /i shell32.dll |
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
echo "Can I run Mountain Lion? " | |
ioreg -l -p IODeviceTree | grep firmware-abi | sed -n ' | |
'/EFI64/' { | |
i\ | |
Yes | |
} | |
'/EFI64/' !{ | |
i\ | |
No | |
}' |
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
curl -s https://raw.github.com/gist/3096054/f8ef32fa41f1e281f182c0d48caf5a4437510dc4/cirml.sh | sh |
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 codecs | |
import re | |
import random | |
""" | |
jeje.py | |
A simple jeje encoder | |
In [1]: import jeje |
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
$ python letterpress.py | |
5 vttplruohripniomtrptfaira | |
5 letters | |
votal volar vomit vitta vital virtu viron viral viola vinta vinal vapor valor varna varan vault vaunt truth trump troth trout trona troot troop tromp troft troat trior trifa trial trait trail train trant tramp trama tutor tutin tutti tulip turio turma tumor tufan tuath tuart tuarn tovar totum total topia tolan torta torii torma toral torah toran tourn tonal tooth tomin toman thruv thrum throu thrip thrap thram thulr thurt thurl thurm thump tholi thort thorp thorn thoro thoom thoft thirt thirl thiol thatn tharm tharf thana titar tipup tilth tirma tinta timor timon timar tiara tatou tatta tapul tapoa tapir tapia tappa talon talma talar talao tarot tarri tarin tarfa tarau taraf taupo taula taunt tahua tahil tahin taipo tairn taint tanti tanoa tanha tania tafia plump pluma plout ploat plait plain plant prunt proto proof proal prior prion print primp prima prana praam pupil pupal punto punti punta potto polio polar porto porta poral poult poulp pohna p |
OlderNewer