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
def define_context( context, parent_contexts = None, verbose = False ): | |
if verbose: | |
print 'Defining context for \"%s\"' % context.__name__ | |
if parent_contexts is None: | |
parent_contexts = [] | |
def make_test_case_name( parent_contexts, context ): | |
if len(parent_contexts) > 0: | |
return '_'.join( [ x.__name__ for x in parent_contexts + [ context ] ] ) |
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 foo( args ) | |
{ | |
if( !(promises instanceof Array) ) | |
args = Array.prototype.slice.call(arguments); | |
... | |
} |
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; | |
namespace SpecLite | |
{ | |
class Suite | |
{ |
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 SingleThreadedSynchronizationContext : SynchronizationContext | |
{ | |
private readonly Queue<Action> messagesToProcess = new Queue<Action>(); | |
private readonly object syncHandle = new object(); | |
private bool isRunning = true; | |
public override void Send(SendOrPostCallback codeToRun, object state) | |
{ | |
throw new NotImplementedException(); |
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
select distinct vp.ParentId, stdev( vr.Percents ) over (partition by vp.ParentId ) dev , | |
( select FullName from VotingPlace where Id = vp.ParentId ) | |
from VotingResult vr inner join VotingPlace vp on vr.VotingPlaceId = vp.Id where vr.Counter = '23' and vp.ElectionId = 'PRES2012' and vp.Type = 5 | |
order by dev desc |
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
param( | |
[Parameter(Mandatory=$true)][string] $binPath | |
) | |
function GetAllAssemblies( [string] $path ) | |
{ | |
$assemblyFiles = Get-ChildItem $path | Where-Object { $_.Extension -eq '.dll' -or $_.Extension -eq '.exe' } | |
$assemblies = $assemblyFiles | %{ | |
try { | |
[System.Reflection.Assembly]::LoadFile( $_.FullName ) |
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.IO; | |
using System.Runtime.Serialization; | |
using System.Xml; | |
namespace ConsoleApplication3 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
def foo(): | |
bar() | |
def bar(): | |
raise Exception( "test" ) | |
foo() |
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
def foo | |
bar() | |
end | |
def bar | |
raise "test" | |
end | |
foo() |
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 foo() | |
{ | |
bar() | |
} | |
function bar() | |
{ | |
throw new Error( "test" ) | |
} |
OlderNewer