Skip to content

Instantly share code, notes, and snippets.

@hasegawayosuke
hasegawayosuke / foo.js
Created February 23, 2011 02:46 — forked from mattn/foo.pl
// Firefox
(function function() (function function() alert(1))())()
@hasegawayosuke
hasegawayosuke / foo.cxx
Created February 25, 2010 06:17 — forked from mattn/foo.cxx
/*
fix: error C2016: C では、構造体または共用体に少なくとも 1 つのメンバが必要です。
struct function {
};
*/
typedef void functon;
function foo() {
}
// Running JSDeferred on WSH
var _util = {
cat : function(f){
if(f.match(/^(https?|file):/)) {
var xhr = new ActiveXObject("Microsoft.XMLHTTP");
xhr.open("GET", f, false);
xhr.send();
return xhr.responseText;
}
return (new ActiveXObject("Scripting.FileSystemObject")).OpenTextFile(f,1,false).ReadAll();