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 <stdio.h> | |
int main ( int argc, char *argv[] ) { | |
return 0; | |
} |
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 c = new Counter(); | |
c.add(); // 1 | |
c.get(); // 1 | |
c.add(); // 2 | |
var n; | |
n = c + 1; // n == 3 |
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
response.write("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
exist_pid(){ | |
res=`ps ax | sed "s/^\s\+\?\([0-9]\+\).\+$/\1/g" | grep "^${1}$" | wc -l` | |
if test $res -ge 1 | |
then | |
return true | |
else | |
return false | |
fi | |
} |
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
Object.prototype._new_ = function () { | |
var args = Array.apply([], arguments); | |
return eval("new this(" + args.join(",") + ")"); | |
}; | |
// sample | |
Array._new_(1,2,3); // [1,2,3] | |
Object._new_(); // {} | |
Number._new_(33); // 33 |
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 () { | |
var re = {}; | |
// define board | |
re.board = []; | |
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
jQuery.create = function (tagName, innerText, attributes) { | |
var res; | |
if (typeof innerText === "undefined" || !innerText) { | |
innerText = ""; | |
} | |
if (typeof attributes === "undefined" || !attributes) { | |
attributes = {}; | |
} |
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
jQuery.encodeJSON = function ($) { | |
var enc = function (data) { | |
var res = "", a, b; | |
switch (typeof data) { | |
case "number" : | |
return data + ""; | |
case "string" : | |
res = escape(data); |
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
(+[])[([][(![]+[])[+[]]+([]+![]+[][+[]])[(+!+[]+[]+[])+(+[])]+([]+![])[!+[]+!+[]]+([]+!![])[+[]]+([]+!![])[!+[]+!+[]+!+[]]+([]+!![])[+!+[]]]+[])[!+[]+!+[]+!+[]]+([]+!![]+[][(![]+[])[+[]]+([]+![]+[][+[]])[(+!+[]+[]+[])+(+[])]+([]+![])[!+[]+!+[]]+([]+!![])[+[]]+([]+!![])[!+[]+!+[]+!+[]]+([]+!![])[+!+[]]])[(+!+[]+[]+[])+(+[])]+([][+[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][+[]]+[])[+[]]+([][(![]+[])[+[]]+([]+![]+[][+[]])[(+!+[]+[]+[])+(+[])]+([]+![])[!+[]+!+[]]+([]+!![])[+[]]+([]+!![])[!+[]+!+[]+!+[]]+([]+!![])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([]+!![]+[][(![]+[])[+[]]+([]+![]+[][+[]])[(+!+[]+[]+[])+(+[])]+([]+![])[!+[]+!+[]]+([]+!![])[+[]]+([]+!![])[!+[]+!+[]+!+[]]+([]+!![])[+!+[]]])[(+!+[]+[]+[])+(+[])]+(!![]+[])[+!![]]][([][(![]+[])[+[]]+([]+![]+[][+[]])[(+!+[]+[]+[])+(+[])]+([]+![])[!+[]+!+[]]+([]+!![])[+[]]+([]+!![])[!+[]+!+[]+!+[]]+([]+!![])[+!+[]]]+[])[!+[]+!+[]+!+[]]+([]+!![]+[][(![]+[])[+[]]+([]+![]+[][+[]])[(+!+[]+[]+[])+(+[])]+([]+![])[!+[]+!+[]]+([]+!![])[+ |
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 <stdio.h> | |
int sum (int n, int a, int r) { | |
if (n == 1) { | |
return a; | |
} | |
return a + r * sum(n - 1, a, r); | |
} | |
int main (int argc, char *argv[]) { |
OlderNewer