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
/* | |
[SHARD] - your evernote shard | |
Right click on a note and copy it's Public URL. You will have something like | |
https://www.evernote.com/shard/s7/sh/... | |
the bit after "shard/" is the shard for your public notes. In the above, it's "s7" | |
[USER_ID] - your user id | |
You can get this by visiting a shared notebook in your account. It's also another | |
way to get your shard information, as the "shard/NN" string will also be present | |
there |
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
{ | |
"__urls__": [ | |
"I do this to preserve comments between reloads", | |
"1. https://github.com/buymeasoda/soda-theme", | |
"2. install color addon", | |
"3. install Package Control", | |
"4. add LESS and SASS packages" | |
], | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Monokai Soda.tmTheme", |
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 cb = document.createElement("input"); | |
cb.type = "checkbox"; | |
cb.checked = 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
<?php | |
class Dispatcher { | |
public function dispatch($call, $key_stack, $options = array()) { | |
// ... set up an array for child processes | |
// ... dispatch, collect round robin | |
// ... got a complete response from a child | |
call_user_func_array($options['thread_complete_callback'], array($results)); | |
// ... continue until all dispatches are made for $key_stack | |
// ... dispatch complete callback | |
return call_user_func_array($options['dispatch_complete_callback'], array($results)); |
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 foo_count = 0; | |
var bar_count = 0; | |
var foo = function() { | |
++foo_count; | |
window.setTimeout(bar, 5); | |
}; | |
var bar = function() { | |
++bar_count; | |
alert("foo="+foo_count+", bar="+bar_count); |
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 | |
/** | |
* Required Include Files | |
*/ | |
require_once(DIR_CLASSES . 'container/datatypecontainer.php'); | |
class TransactionEntry | |
{ | |
function TransactionEntry() | |
{ | |
$this->Container = new DataTypeContainer(); |
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 | |
$btm = new BankTransactionManager($transaction); | |
// create entry (Account, Entry Type) | |
$e = $btm->createEntry("Gold.Gold"); | |
$e->setUserId($user_id); | |
$e->addGold($gold_amount); | |
$btm->addEntry($e); | |
$e = $btm->createEntry("ServerGold.Gold"); |
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 createScriptNode = (function() { | |
var testScr = document.createElement("script"), | |
property = "innerHTML"; | |
testScr.type = "text/javascript"; | |
try { | |
testScr.text = ";"; | |
property = "text"; | |
} | |
catch(e) {} | |
return function(code) { |
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
exports.increment = function(val) { | |
return val + 1; | |
}; |
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 foo = require("foo"), | |
bar = foo.bar; | |
exports.bar = bar; |