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 | |
abstract class Builder | |
{ | |
/** | |
* Builds the array version on the input parameter. | |
* | |
* @param mixed $source | |
* @return mixed | |
*/ |
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 Queue = function () { | |
var previous = new $.Deferred().resolve(); | |
return function (fn, fail) { | |
return previous = previous.then(fn, fail || fn); | |
}; | |
}; |
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 funcs = [ | |
function () { if (true) if (true) return 0; else return 1; }, // 0 | |
function () { if (true) { if (true) return 0; else return 1; } }, // 0 | |
function () { if (true) { if (true) return 0; } else return 1; }, // 0 | |
function () { if (false) if (true) return 0; else return 1; }, // undefined | |
function () { if (false) { if (true) return 0; else return 1; } }, // undefined | |
function () { if (false) { if (true) return 0; } else return 1; }, // 1 | |
function () { if (true) if (false) return 0; else return 1; }, // 1 |
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
// | |
// StringBool.hpp | |
// StringBool, Textual Cohesion Bool | |
// | |
// Created by Thomas Nadin on 06/12/2012. | |
// Useful for debugging when you want to know whether or not it was an int or bool. | |
// | |
#ifndef TNADIN_STRING_BOOL_HPP | |
#define TNADIN_STRING_BOOL_HPP |
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
// | |
// virtual_operators.cpp | |
// Virtual & Concrete operators in C++ | |
// | |
// Created by Thomas Nadin on 07/11/2012. | |
// Copyright (c) 2012 Thomas Nadin. All rights reserved. | |
// | |
#include <iostream> |