View Custom.css
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
/**********************************************/ | |
/* Console | |
/**********************************************/ | |
/**********************************************/ | |
/* Messages | |
/**********************************************/ | |
#console-messages { | |
font-family: 'DroidSansMono', Menlo, monospace !important; |
View css3backgroundpatterns
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
/*Kitchen*/ | |
.kitchen{background: -webkit-linear-gradient(45deg, rgba(255,0,0,0.5) 25%, rgba(255,255,255,0.5) 25%, rgba(255,255,255,0.5) 50%, rgba(255,0,0,0.5) 50%, rgba(255,0,0,0.5) 75%, rgba(255,255,255,0.5) 75%, rgba(255,255,255,0.5) 100%), | |
-webkit-linear-gradient(-45deg, rgba(255,0,0,0.5) 25%, rgba(255,255,255,0.5) 25%, rgba(255,255,255,0.5) 50%, rgba(255,0,0,0.5) 50%, rgba(255,0,0,0.5) 75%, rgba(255,255,255,0.5) 75%, rgba(255,255,255,0.5) 100%); | |
background-size:100px 100px; | |
} | |
/*wave*/ | |
body{background: -webkit-radial-gradient(top left, transparent 0, transparent 40px, gold 40px, gold 50px, transparent 50px), | |
-webkit-radial-gradient(bottom right, transparent 0, transparent 50px, gold 50px, gold 60px, transparent 50px); | |
background-size:100px 100px; |
View Custom.css
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
/**********************************************/ | |
/* | |
/* Tomorrow Skin by Ben Truyman - 2011 | |
/* | |
/* Based on Chris Kempson's Tomorrow Theme: | |
/* https://github.com/ChrisKempson/Tomorrow-Theme | |
/* | |
/* Inspired by Darcy Clarke's blog post: | |
/* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
/* |
View String.prototype.toCamelCase.js
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
String.prototype.toCamelCase = function(){ | |
return this.split(/\s+/).map(function(word, index){ | |
word = word.toLowerCase(); | |
if(index !== 0){ | |
return word.split('').map(function(char, i){ | |
if(i===0){ | |
return char.toUpperCase(); | |
} | |
return char; | |
View base64.js
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
img = new Image(); | |
img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAP0AAAD9CAYAAAB3NXH8AAAgAElEQVR4XuydB5xlRZXw63WcDtM9kQyioLgqqKyouGZFsgqmFVFR18SCGDDtuu7KZwIEIzkKCkpGsoCKKCA5D1HS5Dw9PZ3fvd85VXXqnlu36oaX+nVPv9+86ffurRte3fqfVKeqSmLmNdVroAQ/AN/48v3l+7J+b8gK0GfXX14u65wz+5uoBqiRNNEtzdyKowYIbN/fFg28a3+WMMD9WXDjfv4OrO/2/hmB0MTNeAb65no4XFNzkPGz8/2JA8UeXbPENh2d4l8FolgSOwGe3WEoWidC8SL58xBBOHMwIeaLUqnT+ZPDcLSlTayhslimrSSeK5VEGY4dgu1P4x2MjYp7hkfE0vOuEndBEbyi702CgAQEFy7NVeub2d3MQD+5D9zWzAR2K9wWvvF764f2Ef+yxVyxZ6lFvLIUip3Kodg+CMTsICjNMwa9VvX0c8yDdTxhADn2AgGRfOltLlufBElLS7i2pUVsbC2JF2Dbc0EoHli5Ttx+8fViEXwva4GAf+mzy0KY3CewGV59BvrGPnQbcgO2hrz1kP3F7vP6xF4A5h6oqYOy2CYUpVl4mzGHHb4QvPwhym16Q7UP1wAPH7hgML6A1uW2b1AS4UhLq1iKlgIcd9faAXHjBdeIezX8XAjgZ9s1aOwT2QyvVm272AyrrPBPJgy5ed6mIW/73IfFAR3t4h3w/TXjY+IlYak0m8MN2l2+5EkIZuuv0e4oCPjteZ5uLk2P52FqXpJpWQT0nf81AgB0OhcGpTDc2N4h/gmnuX9sXPz59IvE1fB5QgsC/MvdBBIEhSt75oDsGpiBPruOKilhg24gP/jdYpdtF4oPhi3i3dD4dwFMZxn1D4Ab4LUm54C2xFR9JATs7VJIWE8274O2Lf0Y6HonmPHyZfZZ22kf7jcCActrQaCKhyMg7B4v |
View downloadlink.js
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
var bb = new BlobBuilder(); | |
var ctx = canvas.getContext('2d'); | |
var d = ctx.getImageData(0, 0, canvas.width, canvas.height).data; | |
bb.append(d); | |
downloadLink.href = window.URL.createObjectURL(bb.getBlob(MIME_TYPE)); | |
downloadLink.dataset.downloadurl = [MIME_TYPE, FILE_NAME, downloadLink.href].join(':'); |
View levenshteinDistance.js
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
function levenshteinDistance (s, t) { | |
if (!s.length) return t.length; | |
if (!t.length) return s.length; | |
return Math.min( | |
levenshteinDistance(s.substr(1), t) + 1, | |
levenshteinDistance(t.substr(1), s) + 1, | |
levenshteinDistance(s.substr(1), t.substr(1)) + (s[0] !== t[0] ? 1 : 0) | |
); | |
} |
View gist:4404987
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
Random Gist |
View bash_profile
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
########### | |
# Aliases # | |
########### | |
alias ll='ls -l' | |
alias js='node' | |
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' | |
alias ls='ls -G' | |
alias gadd="git add .; git add -u .; git status;" | |
alias nook='cd ~/Projects/NookWeb/nook.com' |
View js1ks.js
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
Number.prototype.pow = function(n){return Math.pow(this,n)} | |
function C(u){ | |
return document.createElement(u) | |
} | |
z = 50; | |
d = C('div') | |
i = C('input') |
OlderNewer