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
<?php | |
$text = strtolower('FourscoreandsevenyearsagoourfaathersbroughtforthonthiscontainentanewnationconceivedinzLibertyanddedicatedtothepropositionthatallmenarecreatedequalNowweareengagedinagreahtcivilwartestingwhetherthatnaptionoranynartionsoconceivedandsodedicatedcanlongendureWeareqmetonagreatbattlefiemldoftzhatwarWehavecometodedicpateaportionofthatfieldasafinalrestingplaceforthosewhoheregavetheirlivesthatthatnationmightliveItisaltogetherfangandproperthatweshoulddothisButinalargersensewecannotdedicatewecannotconsecratewecannothallowthisgroundThebravelmenlivinganddeadwhostruggledherehaveconsecrateditfaraboveourpoorponwertoaddordetractTgheworldadswfilllittlenotlenorlongrememberwhatwesayherebutitcanneverforgetwhattheydidhereItisforusthelivingrathertobededicatedheretotheulnfinishedworkwhichtheywhofoughtherehavethusfarsonoblyadvancedItisratherforustobeherededicatedtothegreattdafskremainingbeforeusthatfromthesehonoreddeadwetakeincreaseddevotiontothatcauseforwhichtheygavethelastpfullmeasureofdevotionthatweherehig |
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 sys = require('sys'); | |
var url = require('url'); | |
var oauth = require('oauth'); | |
var request = require('request'); | |
var querystring = require('querystring'); | |
var Extendable = require("extendables").Extendable; | |
var defaultOptions = { | |
url: '', |
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
Connected to host. | |
Secure connection made. | |
<<RECEIVED>>: '* OK Gimap ready for requests from 71.9.16.10 e4if334400ann.47\r\n' | |
<<SENT>>: A1 CAPABILITY | |
<<RECEIVED>>: '* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH\r\nA1 OK Thats all she wrote! e4if334400ann.47\r\n' |
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
// starting around line 1010 in imap.js | |
} else { // single part | |
next = 7; | |
part = { | |
// the path identifier for this part, useful for fetching specific | |
// parts of a message | |
partID: (prefix !== '' ? prefix : '1'), | |
// required fields as per RFC 3501 -- null or otherwise | |
type: cur[0].toLowerCase(), |
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
/* | |
* | |
* Copyright (C) 2011, The Locker Project | |
* All rights reserved. | |
* | |
* Please see the LICENSE file for more information. | |
* | |
*/ | |
//testing for the IMAP connector against a live IMAP server |
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
-module(tester). | |
-export([loopTheFucker/2]). | |
loopTheFucker(N, Total) when N =/= 0 -> | |
spawn(fun() -> true end), | |
loopTheFucker(N-1, Total+N); | |
loopTheFucker(0, Total) -> Total. | |
%% After downloading this, run the following in the Erlang shell (erl on the command line): | |
%% 1> c(tester). |
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
try { | |
TCHAR* searchString = STRDUP_AtoT(*(*baton->search)); | |
Query* q = QueryParser::parse(searchString, _T(""), &analyzer); | |
Hits* hits = s.search(q); | |
HandleScope scope; | |
//_CLDELETE(q); | |
free(searchString); | |
// Build the result array | |
Local<v8::Array> resultArray = v8::Array::New(); |
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
{ type: 'status/twitter', | |
via: 'synclet/twitter', | |
timestamp: 1314739860211, | |
action: 'new', | |
obj: | |
{ source: 'twitter_mentions', | |
type: 'new', | |
data: | |
{ in_reply_to_screen_name: 'erictj', | |
truncated: false, |
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
Can handle failwhale | |
✗ successfully | |
TypeError: Cannot read property 'data' of undefined | |
at Object.<anonymous> (/Volumes/Data/opt/locker/tests/synclet-local-twitter.js:76:34) | |
at runTest (/Volumes/Data/opt/locker/node_modules/vows/lib/vows.js:95:26) | |
at EventEmitter.<anonymous> (/Volumes/Data/opt/locker/node_modules/vows/lib/vows.js:78:13) | |
at EventEmitter.emit (events.js:64:17) | |
at Array.0 (/Volumes/Data/opt/locker/node_modules/vows/lib/vows/context.js:31:52) | |
at EventEmitter._tickCallback (node.js:126:26) |
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
2 Sep 10:21:12 - error: [Links] | |
2 Sep 10:21:12 - error: [Links] /Volumes/Data/opt/locker/Collections/Links/unshortener.js:132 | |
2 Sep 10:21:12 - error: [Links] req.connection.setTimeout(5000); | |
2 Sep 10:21:12 - error: [Links] ^ | |
2 Sep 10:21:12 - error: [Links] TypeError: Cannot call method 'setTimeout' of undefined | |
at Object.__request (/Volumes/Data/opt/locker/Collections/Links/unshortener.js:132:24) |
OlderNewer