Skip to content

Instantly share code, notes, and snippets.

@nunull
nunull / index.html
Last active Aug 29, 2015
Rock, Paper, Scissors
View index.html
<!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 Aug 29, 2015
Remove all Styles from a Website.
View bookmarklet.js
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]);}
View .bashrc
# 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 Feb 4, 2014
LocalStorageEditor
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Editor</title>
<style type="text/css">
body {
background-color: #EEE;
}
header {
z-index: 1000;
You can’t perform that action at this time.