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
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 |
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
require 'sinatra' | |
enable :sessions | |
get '/' do | |
session[:words] ||= [] | |
session[:words].push params[:word] if params[:word] | |
erb :view | |
end |
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
/* | |
+----------------------------------------------------------------------+ | |
| 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 | |
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
#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)); |
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
#include <iostream> | |
using namespace std; | |
class HelloCppTest { | |
public: | |
static void testMain() { | |
cout << "Hello, C++er!" << endl; | |
} | |
}; |
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
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() { |
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
require './extension' | |
class A | |
def foo | |
puts "Success!" | |
end | |
end | |
class B | |
end |
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
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) { |
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
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) { |
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
(n -> | |
1 => a | |
0 => b | |
for 1 n ( | |
b => c | |
a => b | |
+ a c => a | |
) | |
a | |
) => fib |