Skip to content

Instantly share code, notes, and snippets.

@nunull
nunull / README.md
Created September 14, 2016 20:15
Reduce Advanced - Using ramda.js
@nunull
nunull / index.html
Last active August 29, 2015 14:21
Rock, Paper, Scissors
<!DOCTYPE html>
<html>
<head>
<title>Rock, Paper, Scissors</title>
</head>
<body>
<select id="user-choice">
<option value="0">Rock</option>
<option value="1">Paper</option>
<option value="2">Scissors</option>
@nunull
nunull / bookmarklet.js
Last active August 29, 2015 14:19
Remove all Styles from a Website.
javascript:var links=document.getElementsByTagName('link');for(var i=0,j=links.length;i<j;i++){if(links[i]&&links[i].rel==='stylesheet')links[i].parentElement.removeChild(links[i]); }var styles=document.getElementsByTagName('style');for(var i=0,j=styles.length;i<j;i++){if(styles[i])styles[i].parentElement.removeChild(styles[i]);}
@nunull
nunull / .bashrc
Created March 23, 2015 14:41
bash-clip
# Edit some text in $EDITOR and copy it to the clipboard.
clip() {
$EDITOR ~/.tmp
if [ -e "~/.tmp" ]; then
cat ~/.tmp | pbcopy
rm ~/.tmp
fi
}
@nunull
nunull / index.html
Created February 4, 2014 16:24
LocalStorageEditor
<!DOCTYPE html>
<html>
<head>
<title>Editor</title>
<style type="text/css">
body {
background-color: #EEE;
}
header {
z-index: 1000;