[Serializable] public class CustomDictionary : SerializableDictionary { }
Discover gists
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
/* | |
* Easing.pde - brings Robert Penner's easing functions into Processing | |
* (c) 2015 cocopon. | |
* | |
* See the following to learn more about these famous functions: | |
* http://www.robertpenner.com/easing/ | |
* | |
* License: | |
* http://www.robertpenner.com/easing_terms_of_use.html | |
*/ |
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
# @paragraphs is an Array of Strings - various puts'es confirm this. | |
@paragraphs.each do |paragraph| | |
renderer = HH::LessonParaRenderer.new(container) | |
markdown = Redcarpet::Markdown.new(renderer) | |
p paragraph # Just checking - it's a String! | |
# raises: <TypeError: wrong argument type Array (expected String)> | |
markdown.render(paragraph) | |
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
ruby-1.9.2-p290 :001 > class Foo | |
ruby-1.9.2-p290 :002?> def bonk | |
ruby-1.9.2-p290 :003?> @bonk = nil | |
ruby-1.9.2-p290 :004?> end | |
ruby-1.9.2-p290 :005?> end | |
=> nil | |
ruby-1.9.2-p290 :006 > f = Foo.new | |
=> #<Foo:0x007ff15c1e65b8> | |
ruby-1.9.2-p290 :007 > f.bonk | |
=> nil |
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
function allTests(thisFnWrapsAllYourTests) { | |
var successes = 0; | |
var failures = []; | |
var scopes = []; | |
var msgInScope = function(msg) { | |
return scopes.concat([msg]).join(": "); | |
} | |
var doTheseListsMatch = function(expected, actual) { |
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
import peasy.*; | |
PeasyCam camera; | |
PVector[] spherePos; | |
void setup() { | |
size(800, 600, P3D); | |
camera = new PeasyCam(this, 0,0,0, 200); | |
setUpSpheres(); | |
} |
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
From e11b753cdbe8a1e911750679bec065c0efac6c7f Mon Sep 17 00:00:00 2001 | |
From: Devin Weaver <suki@tritarget.org> | |
Date: Tue, 13 Oct 2015 12:51:48 -0400 | |
Subject: [PATCH] Add documentation for README_mac.txt | |
This is long over due. I realize that the Mac versions of things have | |
moved to MacVim and most people install via Homebrew without giving | |
second thought to the actual Vim source. However, I tend to jump to | |
README_mac.txt when I clone the Vim source. Every time I do a small | |
little kitten in Suburbia Ville cries uncontrollably. I can't be the |
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
#!/usr/bin/env node | |
var Writable = require('stream').Writable; | |
var Util = require('util'); | |
function FloorCounter() { | |
Writable.call(this); | |
this.floor = 0; | |
this.position = 0; | |
this.enteredBasementAt = null; |
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
// $ node so_example.js 2000000000 > /dev/null | |
// FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory | |
// Aborted (core dumped) | |
var util = require('util'); | |
var stream = require('stream'); | |
var crypto = require('crypto'); | |
util.inherits(PasscodeGenerator, stream.Readable); | |
util.inherits(Hasher, stream.Transform); |
NewerOlder