Skip to content

Instantly share code, notes, and snippets.

View snarkyboojum's full-sized avatar
🧠
Probably not on a plane

Adrian White snarkyboojum

🧠
Probably not on a plane
  • Sydney, Australia
View GitHub Profile
$ perl6 --version
This is perl6 version 2011.09-15-g991ade7 built on parrot 3.8.0 revision RELEASE_3_8_0-120-gb7e7400
$ cat scores
Beth Ana Charlie Dave
Ana Dave | 3:0
Charlie Beth | 3:1
Ana Beth | 2:3
Dave Charlie | 3:0
Ana Charlie | 3:1
$ mono run/Niecza.exe examples/gtk1.pl
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for Gtk.Application ---> System.DllNotFoundException: glibsharpglue-2
at (wrapper managed-to-native) GLib.Thread:glibsharp_g_thread_supported ()
at GLib.Thread.get_Supported () [0x00000] in <filename unknown>:0
at Gtk.Application..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
@snarkyboojum
snarkyboojum / vocal_perl6_users.xml
Created September 13, 2011 13:25
Vocal Perl 6 users
<?xml version='1.0' standalone='yes'?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<name>freenode.net</name>
<Folder>
<name>#perl6</name>
<Placemark>
<name>mdxi [Shawn Boyette]</name>
<Point>
<coordinates>-95.3670,29.7523,0</coordinates>
@snarkyboojum
snarkyboojum / gist:1210215
Created September 11, 2011 22:29
Last 50 lines of output with Niecza build with mono --trace=all
[0xac93a2c0: 1.92360 27567] ENTER: System.NullReferenceException:.ctor ()(this:0x17108c0[System.NullReferenceException Niecza.exe], )
[0xac93a2c0: 1.92361 27568] ENTER: System.SystemException:.ctor (string)(this:0x17108c0[System.NullReferenceException Niecza.exe], [STRING:0x4f3da8:A null value was found where an object instance was required.], )
[0xac93a2c0: 1.92362 27569] ENTER: System.Exception:.ctor (string)(this:0x17108c0[System.NullReferenceException Niecza.exe], [STRING:0x4f3da8:A null value was found where an object instance was required.], )
[0xac93a2c0: 1.92363 27569] LEAVE: System.Exception:.ctor (string)
[0xac93a2c0: 1.92364 27568] LEAVE: System.SystemException:.ctor (string)
[0xac93a2c0: 1.92366 27567] LEAVE: System.NullReferenceException:.ctor ()
[0xac93a2c0: 1.92366 27566] LEAVE: (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)[OBJECT:0x0]
[0xac93a2c0: 1.92368 27566] ENTER: (wrapper runtime-invoke) <Module>:runtime_invoke_object__this__ (object,intptr,int
@snarkyboojum
snarkyboojum / gist:1210188
Created September 11, 2011 22:07
Building Niezca on OS X 10.7.1 with Mono 2.8.2 coredumps
Makefile using:
RUN_CLR=mono
Using Mono version:
$ mono --version
Mono JIT compiler version 2.8.2 (tarball Tue Jan 4 15:08:58 MST 2011)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
@snarkyboojum
snarkyboojum / gist:1209432
Created September 11, 2011 10:24
Failure to build Niezca on OS X 10.7.1 with Mono 2.8.2
Edited Makefile to use:
RUN_CLR=mono-sgen
Using Mono version:
$ mono --version
Mono JIT compiler version 2.8.2 (tarball Tue Jan 4 15:08:58 MST 2011)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
@snarkyboojum
snarkyboojum / top-commenters.pl
Created April 16, 2011 06:51
DailyMile comment(ers) script
use Modern::Perl;
use LWP::Simple;
use Data::Dumper;
use JSON;
my $USERNAME = 'snarkyboojum';
$USERNAME = $ARGV[0] if (defined $ARGV[0]);
my $DEBUG = 0;
use v6;
class A is Num {
multi sub infix:<+>(A $a, A $b) is export(:DEFAULT) { ... }
}
my A $a .= new;
$a + $a;
From b19316d64f5571ad9b23be2af1fba24d96ae4e3c Mon Sep 17 00:00:00 2001
From: snarkyboojum <snarkyboojum@gmail.com>
Date: Wed, 12 Jan 2011 20:49:18 +1100
Subject: [PATCH] Added a basic --info switch
---
bin/neutro | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/bin/neutro b/bin/neutro
$ neutro --info MIME::Base64
Name MIME::Base64
Version *
Description Encoding and decoding Base64 ASCII strings
Repo-type git
Repo-url git://github.com/snarkyboojum/Perl6-MIME-Base64.git