I hereby claim:
- I am hug33k on github.
- I am hug33k (https://keybase.io/hug33k) on keybase.
- I have a public key ASASNZIVcTru7cCuTd-MGMEZjVQgh_aHqJ5uVOUveS_wBAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
imgs = document.getElementsByTagName("img"); | |
for (let index = 0; index < imgs.length; index++) { | |
let item = imgs[index]; | |
if (item.src.startsWith("https://static.xx.fbcdn.net/")) { | |
item.src = undefined; | |
switch(item.alt) { | |
case ":)": | |
item.alt = "🙂"; | |
break; | |
case ":'(": |
#!/usr/bin/env fish | |
# -*- mode:fish; tab-width:4 -*- | |
function gclone | |
set -l _name (echo $argv[1] | rev | cut -d"/" -f1 | rev | cut -d"." -f1) | |
git clone $argv[1] | |
cd $_name |
import signal | |
import subprocess | |
class Shell(object): | |
class CatchSigint: | |
def __init__(self, action): | |
self.action = action |
import json | |
import requests | |
class RequestError(Exception): | |
def __init__(self, value): | |
self.value = "Request Error : " + value | |
def __str__(self): | |
return repr(self.value) |
#!/usr/bin/env fish | |
# -*- mode:fish; tab-width:4 -*- | |
function weather | |
set -l location $LOCATION | |
if [ (count $argv) -eq 1 ] | |
set location $argv[1] | |
else if [ (count $argv) -gt 1 ] |
#!/usr/bin/env fish | |
# -*- mode:fish; tab-width:4 -*- | |
function subl | |
if [ (count $argv) -gt 0 ] | |
sublime -w $argv[1..-1] | |
end |