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
His machine was exceptionally manueverable and he appeared to take flying liberties | |
with impunity... I put my nose down to give him a burst, perhaps too soon; to my | |
amazement he kicked on full rudder without bank, pulled his nose up slightly, gave me | |
a burst while he was skidding sideways, and then kicked on opposite rudder before the | |
results of this amazing stunt appeared to have any effect on the manueverability of | |
his machine. |
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 for the "collapsed" fibonacci matrices | |
type Fiblist = (Integer, Integer, Integer) | |
-- This data type wraps the double-return value needed by fibSum' | |
data PowerSum = PowerSum { | |
curr_pow :: Fiblist, | |
curr_sum :: Fiblist | |
} | |
i = (1,0,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
Y.on("domready", function(ev) { | |
// | |
// submit batch order | |
// | |
Y.on('click', function(ev) { | |
var cfg = { | |
method: 'POST', | |
form: { upload: true, id: 'batchForm' }, |
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
YUI().use('event', 'io', function(Y) { | |
... | |
Y.on('click', function(ev) { | |
// lazy-load admin stuffz | |
YUI().use('anim', 'admin-module', function(Y2) { | |
}); |
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
YUI().use('event', 'io', function(Y) { | |
... | |
Y.on('click', function(ev) { | |
// lazy-load admin stuffz | |
Y.OhYeahUseTheseToo('anim', 'admin-module', function() { | |
// anim and admin-module are now available on the existing Y instance | |
}); | |
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
using System; | |
using System.Collections.Generic; | |
using FluentNHibernate.Cfg; | |
using FluentNHibernate.Cfg.Db; | |
using FluentNHibernate.Mapping; | |
using NHibernate; | |
using NHibernate.Tool.hbm2ddl; | |
namespace nhib_test | |
{ |
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
sealed class Dumper | |
{ | |
static public string Dump(Node root) { | |
return Dump(root, new List<bool>{}); | |
} | |
// isLastPath - for every node in the current path, is it the last child? | |
static internal string Dump(Node n, List<bool> isLastPath) { | |
string bar = "¦"; | |
string junction = "+"; |
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
au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery | |
set nocompatible | |
set autoindent | |
set tabstop=2 | |
set showmatch | |
set vb t_vb= | |
set ruler | |
set nohls | |
set incsearch | |
syntax on |
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
class FairnessWorkerSelectionStrategy: IWorkerSelectionStrategy<ProcessOrderMessage> | |
{ | |
const int availabilityThreshold = 3; | |
const int ordersPerCompanyAtOnce = 5; | |
/// <summary> | |
/// Map company id to number of recent orders placed for it | |
/// </summary> | |
Dictionary<long, int> companyRecentOrdersCount = new Dictionary<long,int>(); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Xml.Linq; | |
using System.Diagnostics; | |
namespace ConsoleApplication1 | |
{ | |
class Program |
OlderNewer