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() { | |
var ds = window.dicksonStorage = { }; | |
var data = getData(); | |
var INTERVAL = 400; | |
setInterval(ianWorker, INTERVAL); | |
ds.clear = clear; | |
function clear() { |
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
use std::io::{Listener, Acceptor}; | |
use std::io::net::ip::{Ipv4Addr, SocketAddr}; | |
use std::io::net::tcp::{TcpListener, TcpStream}; | |
use std::io::BufferedStream; | |
struct Client { | |
id: u16, | |
stream: BufferedStream<TcpStream> | |
} |
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 known = [ 1, 6, 3, 9, 4 ]; | |
var presented = [ 2, 5, 7, 4, 9, 4 ]; | |
check(known, presented, match, done); | |
function match(k, p) { | |
if( k !== p) return false; | |
console.log(k, 'matched with', p); | |
return true; | |
} |
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 mongoose = require('mongoose'); | |
mongoose.connect('mongodb://localhost/test'); | |
var Schema = mongoose.Schema; | |
var PageSchema = Schema({ | |
title: { type: String, default: '', trim: true }, | |
url: { type: String, default: '', trim: true }, | |
thumbnails: {type: Schema.ObjectId, ref: 'Thumbnail'}, | |
}); |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1.4.14 (GNU/Linux) | |
mQENBFMzIewBCACqQipnUvGBhU8XTaHVDiz3yP9BJOZPyWFhuRQx/W9bDQoM5ina | |
NI7k9bKUdtGZVLl3jbZR2fxh/BE8lp6qA0qXrZbVMqocbH9Ih19TSA/116klV9MK | |
nj758sbMHfvcQpGMaxM7il9iKzn71s39opslA2UHQ6R7cukGJTpFihwNo4EhoN5j | |
tnui6grJkoVQQ8Jsh4bjZOTmqUHfojvGicPzQ+C5hxeBEH9h7HlC4XVYQ+Na/dvN | |
hMBFiFJIAalAa4E3IYuHMbNqgxSdRznR3q9j2nx60+pzwNkJfk5vWLSkNTbSzz8f | |
YzAJP6unTeVuKveyXurPvuoNZW8oaWaejSafABEBAAG0Iklnb3IgU29hcmV6IDxp | |
Z29yc29hcmV6QGdtYWlsLmNvbT6JATgEEwECACIFAlMzIewCGwMGCwkIBwMCBhUI |
NewerOlder