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 autopair1() { | |
| LBUFFER+="(" | |
| RBUFFER=")$RBUFFER" | |
| } | |
| zle -N autopair1 autopair1 | |
| bindkey "(" autopair1 | |
| function autopair2() { | |
| LBUFFER+="{" | |
| RBUFFER="}$RBUFFER" |
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
| (custom-set-variables | |
| ;; custom-set-variables was added by Custom. | |
| ;; If you edit it by hand, you could mess it up, so be careful. | |
| ;; Your init file should contain only one such instance. | |
| ;; If there is more than one, they won't work right. | |
| '(custom-enabled-themes (quote (tango-dark)))) | |
| (custom-set-faces | |
| ;; custom-set-faces was added by Custom. | |
| ;; If you edit it by hand, you could mess it up, so be careful. | |
| ;; Your init file should contain only one such instance. |
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
| wget -r -P /save/location -A jpeg,jpg,bmp,gif,png http://www.domain.com |
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
| from bs4 import BeautifulSoup | |
| import urllib2 | |
| # choose a url | |
| url = ' ' | |
| Soup = BeautifulSoup(urllib2.urlopen(url)) | |
| def get_tag_contents(tag_name): | |
| content_list = [] |
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
| $ cat rc.lua | |
| -- Standard awesome library | |
| require("awful") | |
| require("awful.autofocus") | |
| require("awful.rules") | |
| -- Theme handling library | |
| require("beautiful") | |
| -- Notification library | |
| require("naughty") | |
| require("vicious") |
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
| !URxvt color scheme: | |
| URxvt*background: #2B2B2B | |
| URxvt*foreground: #DEDEDE | |
| URxvt*colorUL: #86a2b0 | |
| !black | |
| URxvt*color8: #414141 | |
| URxvt*color0: #353535 |
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
| ` Genesis | |
| Us is riht micel ðæt we rodera weard, | |
| wereda wuldorcining, wordum herigen, | |
| modum lufien! He is mægna sped, | |
| heafod ealra heahgesceafta, | |
| 5 | |
| frea ælmihtig. Næs him fruma æfre, | |
| or geworden, ne nu ende cymþ | |
| ecean drihtnes, ac he bið a rice | |
| ofer heofenstolas. Heagum þrymmum |
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
| rm(list=ls()) | |
| library(XML) | |
| library(ggplot2) | |
| library(reshape) | |
| page_numbers <- 1:1430 | |
| weburl <- "http://results.public.chicagomarathon.com/2011/index.php?page=1&content=list&lang=EN&num_results=25&pid=list&search_sort_order=ASC&top_results=3&type=list" |
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 | |
| LINES=$(tput lines) | |
| COLUMNS=$(tput cols) | |
| declare -A snowflakes | |
| declare -A lastflakes | |
| clear |