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
Date: Thu, 10 Sep 2009 01:32:17 -0400 | |
Subject: [PATCH] comparing identical expressions | |
--- | |
.../alchim/mojo/yuicompressor/BasicRhinoShell.java | 3 --- | |
1 files changed, 0 insertions(+), 3 deletions(-) | |
diff --git a/src/main/java/net/sf/alchim/mojo/yuicompressor/BasicRhinoShell.java b/src/main/java/net/sf/alchim/mojo/yuicompressor/BasicRhinoShell.java | |
index b840f66..a6bc780 100644 | |
--- a/src/main/java/net/sf/alchim/mojo/yuicompressor/BasicRhinoShell.java |
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
<html> | |
<head> | |
<style> | |
#c { | |
padding: 200px; | |
margin: 10px; | |
border: 1px solid #777777; | |
} | |
#num span { | |
font-size: 180%; |
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
// prereq: "npm install beautifyjs" | |
var jsb = require('beautifyjs').js_beautify, | |
fs = require('fs'), | |
fileName = process.argv[2]; | |
if ('string' !== typeof fileName) { | |
console.error('Usage: node codestyle.js fileName'); | |
return; | |
} |
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
/*jslint onevar: false, plusplus: false */ | |
/* | |
JS Beautifier | |
--------------- | |
Written by Einar Lielmanis, <[email protected]> | |
http://jsbeautifier.org/ |
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 cluster = require('cluster') | |
, amqp = require('amqp'); | |
if (cluster.isMaster) { | |
for (var i = 0; i < 5; i++) cluster.fork(); | |
startPublisher(); | |
} else { | |
startSubscriber(); | |
} |
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 http = require('http') | |
, util = require('util'); | |
var CR = http.ClientRequest; | |
function StatsClientRequest(options, cb) { | |
CR.call(this, options, cb); | |
var before = (new Date).getTime(); | |
this.once('response', function (res) { | |
res.on('end', function () { | |
var total = ((new Date).getTime() - before); |
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
StackUtil = {}; | |
/** | |
* Get the filename of the caller of a function | |
* | |
* @param {Boolean} options.isLineNumberRendered | |
* @return {String} name | |
*/ | |
StackUtil.getCallerFilename = function (options) { | |
var name, callSite; |
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
//----------------------------------- | |
// userinfo.js | |
//----------------------------------- | |
/** | |
* Workaround for getting | |
* the uid / gid when only | |
* the 'username' is available. | |
* | |
* Works on POSIX ONLY (i.e. not Windows) |
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 setProxy { | |
local proxy=$1 | |
echo "Setting proxy: $proxy" | |
#TODO: set proxy here | |
} | |
function maybeSetProxy { | |
local proxy=$1 | |
echo "Detecting whether a proxy is needed..." | |
env -i bash -c "curl -sm2 example.com" |
OlderNewer