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 | |
define("true ", false); | |
function doIt() { | |
define(" false", true); | |
define("maybe", rand() & 1); | |
} | |
function ($stupid="clever") { | |
if (assert_value($stupid)) { |
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
/* | |
* File: display-double.cpp | |
* Author: aspyct | |
* | |
* Can be compiled to a binaly that displays the binary value of double numbers. | |
* Usage : ./a.out <number1> ... <number n> | |
* Example: ./a.out 1.0 2.5 | |
* | |
* Created on July 28, 2012, 11:03 PM | |
*/ |
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
package org.aspyct.going; | |
import java.util.Iterator; | |
import java.util.Stack; | |
/** | |
* This is an implementation of the Left Leaning Red/Black Tree as | |
* described in the course from the University of Princeton. | |
* | |
* This code contains a lot of assertions (assert ;). |
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
#ifndef _COMMON_H_ | |
#define _COMMON_H_ | |
#define SEM_KEY_FILE ("sem.key") | |
#endif /* _COMMON_H_ */ |
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 sb = new ServiceBox(); | |
> sb.msg = "Hello World"; | |
> var handler = sb.wrap(function (prefix) { | |
... console.log(prefix); | |
... console.log(this.msg); | |
... }); | |
> handler("this is the prefix"); | |
this is the prefix | |
Hello World |
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
#!/bin/bash | |
# Actual recipient and sender are defined in another file | |
script_dir=`dirname $0`; | |
script_name=`basename $0`; | |
config_file="$script_dir/config-$script_name"; | |
if [ -f $config_file ]; then | |
source $config_file; | |
else |
NewerOlder