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
{ | |
_id: uint, //gives us format :101123 for replies, etc | |
owner_id: int, | |
text: String, | |
room: int, // id of room | |
starred: [user_id], // ids of users | |
flagged: [user_id], // ids of users | |
timestamp: timestamp, // all timestamps are in unix from UTC | |
deleted: timestamp, // null indicates not deleted | |
deletedBy: user_id, // indicates who deleted the message |
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
{ | |
_id: uint, //gives us format :101123 for replies, etc | |
owner_id: int, | |
text: String, | |
room: int, // id of room | |
starred: [user_id], // ids of users | |
flagged: [user_id], // ids of users | |
timestamp: timestamp, // all timestamps are in unix from UTC | |
deleted: timestamp, // null indicates not deleted | |
deletedBy: user_id, // indicates who deleted the message |
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
.untouched { | |
color: #777; | |
} |
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
syntax "markdown" "\.txt$" | |
# Quotations | |
color cyan "^>.*" | |
# Emphasis | |
color green "_.*_" | |
color green "\*.*\*" | |
# Strong emphasis | |
color brightgreen "\*\*.*\*\*" | |
color brightgreen "__.*__" | |
# Underline headers |
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 fs = require('fs'); | |
var router = { | |
resource: function(path,methods){ | |
console.log(path); | |
console.log(methods); | |
} | |
}, | |
module = {}; |
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
OpenSTV version 1.7 (http://www.OpenSTV.org/) | |
Suggested donation for using OpenSTV for an election is $50. Please go to | |
http://www.OpenSTV.org/donate to donate via PayPal, Google Checkout, or | |
Amazon Payments. | |
Certified election reports are also available. Please go to | |
http://www.openstv.org/certified-reports for more information. | |
Loading ballots from file dba-stackexchange-com-2011-election-results.blt. |
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
<html xmlns="http://www.w3.org/1999/xhtml"> |
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 SearchFieldKeypressCallBack(event, value) { | |
//if they entered anything, else use the default like on page load | |
if (value) { | |
//TIM: I was debouncing/throttling here | |
GenerateReportTilesOnSuccess(GetItemsByText(value)); | |
} else { | |
GenerateReportTilesOnSuccess(reportList.list); | |
} | |
} |
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
namespace OX.MapReduce | |
{ | |
using System; | |
using System.Linq; | |
using System.Threading.Tasks; | |
public static class MapReduce | |
{ | |
public static Task<T> Start<U, V, T>(Func<U, V> m, Func<V[], T> r, params U[] i) { | |
return R(r, C(m, i)); |
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 readFromFilesystem = function(file, resp){ | |
wait(function(){ | |
resp.writeHead(200, {"Content-Type":"text/html"}); | |
resp.write("<h1>ASD</h1>"); | |
resp.end(); | |
}); | |
console.log("out..."); | |
} | |
var wait = function(callback){ |
OlderNewer