This file contains hidden or 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 mongoose = require('mongoose'); | |
mongoose.connect('mongo://localhost/test'); | |
var conn = mongoose.connection; | |
var users = conn.collection('users'); | |
var channels = conn.collection('channels'); | |
var articles = conn.collection('articles'); | |
var insertUsers = Q.nfbind(users.insert.bind(users)); | |
var insertChannels = Q.nfbind(channels.insert.bind(channels)); |
This file contains hidden or 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
/* | |
* Nyancat (SpiderMonkey version) | |
* https://gist.github.com/1446827 | |
* | |
* @see https://github.com/klange/nyancat | |
*/ | |
function start() { | |
function frameIterator() { | |
while (true) { |
This file contains hidden or 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
get Android source code: http://source.android.com/source/downloading.html | |
$ cd /path/to/android-src | |
$ cd system/core/libmincrypt/ | |
$ gcc -c *.c -I../include | |
$ ar rcs libmincrypt.a *.o | |
$ cd ../mkbootimg | |
$ gcc mkbootimg.c -o mkbootimg -I../include ../libmincrypt/libmincrypt.a | |
$ cd ../cpio | |
$ gcc mkbootfs.c -o mkbootfs -I../include |
This file contains hidden or 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
// ==UserScript== | |
// @name AutoRemove accesskey Attribute | |
// @namespace http://d.hatena.ne.jp/esperia/ | |
// @description remove "accesskey" attribute for Vimperator | |
// @include http://*.wikipedia.org/* | |
// ==/UserScript== | |
// | |
/* | |
Array.prototype.forEach.call(document.querySelectorAll('[accesskey]'), function (v) { |
This file contains hidden or 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
package net.vvakame.delegatefactory.sample.hide; | |
/* @hide */ | |
public class Bridge { | |
public Bridge() { | |
} | |
/* @hide */ | |
static Data2 combine(Data1 data) { |
NewerOlder