Skip to content

Instantly share code, notes, and snippets.

# *-* coding: UTF-8 *-*
import hashlib
import requests
from urllib.parse import urlencode, unquote_plus
def ksort(d):
return [(k, d[k]) for k in sorted(d.keys())]
$x('//div[@class="video_holder"]/a/@href').forEach(function(x){console.log('youtube-dl '+x.value);})
@motord
motord / tmux.md
Created March 4, 2014 06:57 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

var script=document.createElement('script');
script.src='http://underscorejs.org/underscore-min.js';
var head=document.getElementsByTagName('head')[0];
head.appendChild(script);
_.map($("li.list_item a"), function(a){return a.href;})
var script=document.createElement('script');
script.src='http://underscorejs.org/underscore-min.js';
var head=document.getElementsByTagName('head')[0];
head.appendChild(script);