I hereby claim:
- I am amitmerchant1990 on github.
- I am amitmerchant (https://keybase.io/amitmerchant) on keybase.
- I have a public key whose fingerprint is FBBA 8B64 4897 0F86 CAE1 1B7B 4F92 A08D 6724 0E6A
To claim this, I am signing this object:
$(document).ready(function() { | |
// I have used $(this) so it "listens" on any part of the webpage (document) | |
// Change this to a single or series of elements if required | |
$(this).live("keyup", function(e) { | |
if($("input, textarea").is(":focus")) { | |
// Do nothing because the user might be typing | |
return false; | |
} else { | |
switch(e.keyCode) { | |
/** | |
* Unprefixed animations do nothing in Blink | |
*/ | |
@keyframes foo { | |
to { background: lime; } | |
} | |
body { background: red; animation: foo 1s infinite; } |
/** | |
1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome. | |
2. Open up extension options and paste the whole CSS mentioned below. | |
3. Specify the domain name to be `github.com`. | |
4. Add a title and save. | |
*/ | |
@media (min-height: 850px) { | |
.header { | |
padding-top: 10px; |
/** | |
A nifty little CSS to experience HN in night mode using Stylish. | |
1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome. | |
2. Open up extension options and paste the whole CSS mentioned below. | |
3. Specify the "URLs on the domian to" to be `news.ycombinator.com`. | |
4. Add a title and save. | |
*/ | |
body { | |
font-family: Verdana, Geneva, sans-serif; |
/** | |
A nifty little CSS to experience GitHub code previewer in Dark Skin using Stylish. | |
1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome. | |
2. Open up extension options and paste the whole CSS mentioned below. | |
3. Add "URLs on the domian to" to be `render.githubusercontent.com`. | |
4 Add "URLs on the domian to" to be `raw.githubusercontent.com`. | |
4 Add "URLs matching the regexp" to be `^https?://((gist|guides|help|raw|status|developer).)?github.com((?!generated_pages/preview).)*$`. | |
4. Add a title and save. | |
*/ |
h1 { | |
left: 0; | |
line-height: 200px; | |
margin-top: -100px; | |
position: absolute; | |
text-align: center; | |
top: 50%; | |
width: 100%; | |
} |
I hereby claim:
To claim this, I am signing this object:
/** | |
1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome. | |
2. Open up extension options and paste the whole CSS mentioned below. | |
3. Specify the domain name to be `github.com`. | |
4. Add a title and save. | |
*/ | |
.header { | |
padding-top: 10px; | |
padding-bottom: 10px; |
#!/bin/bash | |
# Created by Sindre Sorhus | |
# Magically retrieves a GitHub users email even though it's not publicly shown | |
[ "$1" = "" ] && echo "usage: $0 <GitHub username> [<repo>]" && exit 1 | |
[ "$2" = "" ] && repo=`curl "https://api.github.com/users/$1/repos?type=owner&sort=updated" -s | sed -En 's|"name": "(.+)",|\1|p' | tr -d ' ' | head -n 1` || repo=$2 | |
curl "https://api.github.com/repos/$1/$repo/commits" -s | sed -En 's|"(email\|name)": "(.+)",?|\2|p' | tr -s ' ' | paste - - | sort -u -k 1,1 |