# Obligatory
sudo apt-get update
sudo apt-get install -y zsh git-core
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.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
// Go to Quora. Go to your profile, click on "Following". Open your console, and paste this: | |
javascript:var elements = document.getElementsByClassName('follow_button unfollow_button');var i = 0;for(i=0;i<elements.length;i++)elements[i].click(); |
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 url(http://fonts.googleapis.com/css?family=Roboto:400,300italic,300,100italic,100,400italic,500,500italic,700); | |
body { | |
font-family: 'Roboto', sans-serif; | |
font-weight: 300; | |
font-size: 14px; | |
} | |
div.description div.wiki { | |
-webkit-column-count: 2; |
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
""" | |
Simple algorithm to download all the egghead.io videos in highest-quality from YouTube. | |
Run from the directory you want the videos to appear. Renames them so that they have the video number + omit the repetitive "Egghead.io - AngularJS -" text. | |
Installing dependency: | |
$ pip install git+https://github.com/NFicano/pytube#egg=pytube | |
""" | |
from pytube import YouTube #, exceptions as YTD_exceptions |
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
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="robbyrussell" | |
# Uncomment the following line to use case-sensitive completion. |
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
$("input[type=text]").on('input',function () { | |
if($(this).val().length == $(this).attr('maxlength')) { | |
$(this).next("input").focus(); | |
} | |
}); |
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
// Matching a alpha numeric username/password that is 3 to 16 charecters long | |
`/^[a-z0-9_-]{3,16}$/` | |
// Matching a hex value that begins with a hash, between 6 and 3 char long | |
`/^#?([a-f0-9]{6}|[a-f0-9]{3})$/` | |
// Regular expression that matches a email address |
I hereby claim:
- I am xthilakx on github.
- I am thilak (https://keybase.io/thilak) on keybase.
- I have a public key ASDA7Lv1AQzEGX5dv7a6knTmDfuYNMNAQGIu53Vv4YfkZQo
To claim this, I am signing this object: