Skip to content

Instantly share code, notes, and snippets.

View haileys's full-sized avatar

Hailey Somerville haileys

View GitHub Profile
System.NullReferenceException: Object reference not set to an instance of an object.
at Manos.Http.HttpMultiPartFormDataHandler.HandleData(HttpTransaction transaction, ByteBuffer data, Int32 pos, Int32 len) in D:\Documents\Visual Studio 2010\Projects\Manos\src\Manos\Manos.Http\HttpMultiPartFormDataHandler.cs:line 211
at Manos.Http.HttpTransaction.OnBody(HttpParser parser, ByteBuffer data, Int32 pos, Int32 len) in D:\Documents\Visual Studio 2010\Projects\Manos\src\Manos\Manos.Http\HttpTransaction.cs:line 264
at Manos.Http.ParserSettings.Raise(HttpDataCallback cb, HttpParser p, ByteBuffer buf, Int32 pos, Int32 len) in D:\Documents\Visual Studio 2010\Projects\Manos\src\Manos\Manos.Http\ParserSettings.cs:line 144
HTTP Parsing Exception:
Manos.Http.HttpException: Exception of type 'Manos.Http.HttpException' was thrown.
at Manos.Http.ParserSettings.RaiseOnError(HttpParser p, String message, ByteBuffer buf, Int32 ini_pos) in D:\Documents\Visual Studio 2010\Projects\Manos\src\Manos\Manos.Http\ParserSettin
require 'sinatra'
enable :sessions
get '/' do
session[:words] ||= []
session[:words].push params[:word] if params[:word]
erb :view
end
@haileys
haileys / basic_functions.c
Created August 20, 2011 13:08
seriously php?
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2011 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
#include <stdlib.h>
#include <string.h>
#include <gc.h>
#include "dict.h"
#include "string.h"
kari_dict_t* new_kari_dict()
{
kari_dict_t* d = (kari_dict_t*)GC_MALLOC(sizeof(kari_dict_t));
d->branch = (kari_dict_branch_t*)GC_MALLOC(sizeof(kari_dict_branch_t));
#include <iostream>
using namespace std;
class HelloCppTest {
public:
static void testMain() {
cout << "Hello, C++er!" << endl;
}
};
var Animal, Horse, Snake, sam, tom;
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor;
child.__super__ = parent.prototype;
return child;
};
Animal = (function() {
require './extension'
class A
def foo
puts "Success!"
end
end
class B
end
var program = "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.";
var memory = [];
var ptr = 0;
var stack = [];
var ip = 0;
while(ip !== program.length) {
if(program[ip] === '[') {
if(!memory[ptr]) {
var nesting = 0;
while(true) {
var program = "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.";
var memory = [0];
var ptr = 0;
var stack = [];
var ip = 0;
while(ip < program.length) {
if(program[ip] === '[') {
if(!memory[ptr]) {
var nesting = 0;
while(true) {
(n ->
1 => a
0 => b
for 1 n (
b => c
a => b
+ a c => a
)
a
) => fib