start new:
tmux
start new with session name:
tmux new -s myname
/** | |
* Like, basically PERFECT scrollbars | |
*/ | |
/* | |
It's pure CSS. | |
Since a quick google search will confirm people going crazy about Mac OS Lion scrollbars... | |
this has no fade-out effect. | |
In Mac OS Lion, the lowest common denominator is always showing scrollbars by a setting. |
import webbrowser, os, pprint | |
# Include the Dropbox SDK libraries | |
#from dropbox import client, rest, session | |
import dropbox | |
# Configuration | |
TOKEN_FILENAME = 'PythonistaDropbox.token' | |
# Get your app key and secret from the Dropbox developer website | |
APP_KEY = '<your dropbox app_key>' | |
APP_SECRET = '<your dropbox app_secret>' |
import requests | |
class HoverException(Exception): | |
pass | |
class HoverAPI(object): | |
def __init__(self, username, password): | |
params = {"username": username, "password": password} | |
r = requests.post("https://www.hover.com/api/login", params=params) |
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
Python script to delete duplicate tracks from Google Play Music library. Please retry until "No duplicate songs" message is displayed. Use this script at your own risk. gmusicapi is required.
import re | |
import os | |
def getpassword(service, account): | |
def decode_hex(s): | |
s = eval('"' + re.sub(r"(..)", r"\x\1", s) + '"') | |
if "" in s: s = s[:s.index("")] | |
return s |
// When we give an element some ‘attention’. | |
@mixin attention() { | |
&:hover, | |
&:active, | |
&:focus { | |
@content; | |
} | |
} |
"""Prompt user for URL and filename and download the remote resource to a file. | |
If the clipboard contains a HTTP(S) or FTP(S) URL, the URL input dialog is | |
pre-filled with it. | |
The suggested local filename is extracted from the URL, if possible. | |
If a github file viewer URL is given, it is transformed into the matching | |
raw file access URL, which makes it easier to download files on github you | |
are viewing in your browser. Just copy the URL to the clipboard, change to |
1. my+ 1001. se+ 2001. thedaily+ 3001. empire+ 4001. herb+ | |
2. +online 1002. test+ 2002. giant+ 3002. +cook 4002. +teen | |
3. the+ 1003. fish+ 2003. survey+ 3003. +deluxe 4003. affordable+ | |
4. +web 1004. hk+ 2004. +conference 3004. +crunch 4004. proto+ | |
5. +media 1005. florida+ 2005. twit+ 3005. michigan+ 4005. +ity | |
6. web+ 1006. fine+ 2006. pick+ 3006. cars+ 4006. myhome+ | |
7. +world 1007. loan+ 2007. +dvd 3007. +forest 4007. plastic+ | |
8. +net 1008. page+ 2008. cinema+ 3008. yacht+ 4008. +kc | |
9. go+ 1009. fox+ 2009. desi+ 3009. +wallet 4009. +foot | |
10. +group 1010. +gift 2010. act+ 3010. +contest 4010. +sup |