Skip to content

Instantly share code, notes, and snippets.

View leppie's full-sized avatar
🤡

Llewellyn Pritchard leppie

🤡
  • Cape Town, South Africa
View GitHub Profile
@leppie
leppie / gist:f8f1555365bf5e2dd267
Created August 27, 2015 09:50
SO tags backup
vb6 vba homework grails coldfusion flash iphone air sifr ms-access db2 vbscript perl sap jpa gql java-ee magento ipad qt weblogic blackberry gwt pentaho wordpress mac corba intellij-idea lucene safari seo redis itouch ant antlr ada gtk doctrine lotus tomcat jcl mongodb netlogo nosql smalltalk beamer spring symbian agile firebird samba jasper-reports sybase fortran qtp itunes sqlite soapui acrobat actionscript* flex* cocoa* struts* ruby* zend* *php* java-* joomla* maven* *hibernate* ipod* xcode* jboss* dotnetnuke* *facebook* java groovy* *jaxb* kanban iphone* telerik osx python* jsf* jquery* r latex oracle* android* devexpress umbraco* wolfram-mathematica awk sed *dreamweaver* symfony* crystal-reports* alfresco *postgres* dojo* codeigniter* xbap oscommerce cucumber mod-rewrite mysql* jpa* extjs semantic-web kohana* django* sqlalchemy cufon birt .htaccess inno-setup jira drupal* postscript swf* automapper ssas jms asterisk amazon-ecs ios* delphi* labview jvm* *payment* *dynamics* yahoo-pipes websphere* siebel p
(import (rnrs))
(define-syntax test
(syntax-rules ()
[(_ a b)
(unless (fl=? a b)
(display a)
(display " != ")
(display b)
; (display " : ")
@leppie
leppie / fp.sps
Last active August 28, 2015 09:24
To generate the tests
#!r6rs
(import (rnrs))
(define (gen-test fps)
(define fp (string->number fps))
(define bv (make-bytevector 8))
(bytevector-ieee-double-native-set! bv 0 fp)
(write `(test ,fps ,(number->string (bytevector-u64-native-ref bv 0) 2)))
(newline))
#!r6rs
(import
(rnrs)
(ironscheme clr))
(define-syntax test
(syntax-rules ()
[(_ i o)
(let* ((bp (get-bits i))
(n (string->number i))
@leppie
leppie / gist:10276657
Created April 9, 2014 14:26
Sure this will work (code is sic)
Class MyList:IList
{
List <int> {get;set}
public void Add( ref int x)
{
MyList.Add(x);
}
}
@leppie
leppie / gist:11252470
Created April 24, 2014 12:12
Visual C# Commandline Compiler crashing hard when clicking build on a file with only the content '__arglist'
1>c:\dev\ConsoleApplication12\ConsoleApplication12\Program.cs(13,15,13,30): error CS0226: An __arglist expression may only appear inside of a call or new expression
1>CSC : error CS0583: Internal Compiler Error (0xc0000005 at address 011EDC89): likely culprit is 'BIND'.
1>c:\dev\ConsoleApplication12\ConsoleApplication12\Program.cs(11,17,11,21): error CS0584: Internal Compiler Error: stage 'BIND' symbol 'ConsoleApplication12.Program.Main(string[])'
1>c:\dev\ConsoleApplication12\ConsoleApplication12\Program.cs(11,17,11,21): error CS0584: Internal Compiler Error: stage 'COMPILE' symbol 'ConsoleApplication12.Program.Main(string[])'
1>c:\dev\ConsoleApplication12\ConsoleApplication12\Program.cs(9,9,9,16): error CS0584: Internal Compiler Error: stage 'COMPILE' symbol 'ConsoleApplication12.Program'
1>c:\dev\ConsoleApplication12\ConsoleApplication12\Program.cs(7,11,7,31): error CS0584: Internal Compiler Error: stage 'COMPILE' symbol 'ConsoleApplication12'
1>c:\dev\ConsoleApplication12\ConsoleApplication12\Program.cs :
D:\test>csc /o SlowDelegates01.cs
Microsoft (R) Visual C# Compiler version 4.0.30319.34209
for Microsoft (R) .NET Framework 4.5
Copyright (C) Microsoft Corporation. All rights reserved.
D:\test>SlowDelegates01.exe
1 => 00:00:00.0159245
2 => 00:00:00.0147080
3 => 00:00:00.0145497
using System;
using System.Diagnostics;
class Program
{
static void Main(string[] args)
{
var s = new Stopwatch();
s.Start();
int a = 0;
using System;
class Program
{
static void Main(string[] args)
{
var i2_53 = 9007199254740992;
var u2_53 = 9007199254740992U;
var f2_53 = Math.Pow(2, 53);
@leppie
leppie / gist:d0b3dc2ae20bd549463a
Created July 11, 2014 11:41
Multi-thread compiling on IronScheme
(import
(ironscheme)
(ironscheme threading))
(define (payload i)
(eval `(displayln ,i) (interaction-environment)))
(define (runner i)
(let f ((x i))
(unless (zero? x)