Skip to content

Instantly share code, notes, and snippets.

@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
@anbinh
anbinh / fft.js
Created March 26, 2013 13:58 — forked from kindohm/fft.js
/*
This code demonstrates how to use a Fast Fourier Transform
with audiolib.js. It pushes samples to an FFT and draws
the FFT spectrum on an HTML5 canvas.
Author: Mike Hodnick
MIT License
*/

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg