Skip to content

Instantly share code, notes, and snippets.

@anbinh
anbinh / dabblet.css
Created April 27, 2013 11:01
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
###
Music is by The XX
@see http://thexx.info
This is best viewed in Chrome since there is a bug in Safari
when using getByteFrequencyData with MediaElementAudioSource
@see http://goo.gl/6WLx1
@anbinh
anbinh / findDiffBetweenStrings
Last active December 15, 2015 14:29 — forked from maettig/LICENSE.txt
findDiffBetweenStrings
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2012 Thiemo Mättig <http://maettig.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@anbinh
anbinh / The Substitution Cipher
Last active December 15, 2015 14:29 — forked from neizod/LICENSE.txt
The Substitution Cipher
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Nattawut Phetmak <http://about.me/neizod>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@anbinh
anbinh / Date format
Last active December 15, 2015 14:29 — forked from atesgoral/LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Ates Goral <http://magnetiq.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@anbinh
anbinh / 140byt.es - Base64 Encoder
Last active December 15, 2015 14:29 — forked from aemkei/LICENSE.txt
140byt.es - Base64 Encoder
# 140byt.es - Base64 Encoder
A simple base64 encoder. Simply pass your string and a reference to the function to get back the encoded string.
### Example
var
map ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
sample = "140bytes rocks!",
{
"name": "browser",
"description": "Browser detection script",
"keywords": [
"browser",
"detect",
"detection",
"firefox",
"opera",
"safari",
@anbinh
anbinh / Base64 Encode
Last active December 15, 2015 14:29 — forked from bytespider/LICENSE.txt
Base64 Encode
function base64Encode(
a, // string to encode
b, // character table ie, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
c, // placeholder
d, // placeholder
e, // placeholder
f, // placeholder
g, // placeholder
h // placeholder
){
@anbinh
anbinh / index.js
Last active December 15, 2015 14:29 — forked from jed/LICENSE.txt
function(a,b,c){for(b=[1e3,60,60,24],a=new Date-a,c=0;a>2*b[c];a/=b[c++]);return~~a+" "+"m0second0minute0hour0day".split(0)[c]+"s ago"}
@anbinh
anbinh / timeAgo
Last active December 15, 2015 14:29 — forked from jed/LICENSE.txt
timeAgo
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE