Skip to content

Instantly share code, notes, and snippets.

View rednaxelafx's full-sized avatar

Kris Mok rednaxelafx

View GitHub Profile
anonymous
anonymous / gist:2967637
Created June 21, 2012 18:34
.NET 4.5 Disassembly
Program:
class Program
{
string myString;
private Program()
{
myString = "foo";
}
@Ninputer
Ninputer / gist:2967888
Created June 21, 2012 19:12 — forked from anonymous/gist:2967637
.NET 4.5 Disassembly
Program:
class Program
{
string myString;
private Program()
{
myString = "foo";
}
@stefmoon
stefmoon / hs_err_pid13265.log
Last active December 11, 2015 12:48
A crash log made by myself to show the bug: http://bugs.sun.com/view_bug.do?bug_id=6964776
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f943ff492ad, pid=13265, tid=1116805440
#
# JRE version: 6.0_32-b05
# Java VM: OpenJDK (Taobao) 64-Bit Server VM (20.0-b12-internal mixed mode linux-amd64 compressed oops)
# Problematic frame:
# J java.lang.Object.<init>()V
#
@BrendanEich
BrendanEich / gist:5753666
Created June 11, 2013 00:36
ES6 version of Peter Norvig's Sudoku solver originally written in Python
// XXX should be standard (and named clone, after Java?)
Object.prototype.copy = function () {
let o = {}
for (let i in this)
o[i] = this[i]
return o
}
// Containment testing for arrays and strings that should be coherent with their iterator.
Array.prototype.contains = String.prototype.contains = function (e) {