This file contains hidden or 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
Statistical profiling result from v8.log, (3315 ticks, 25 unaccounted, 0 excluded). | |
[Unknown]: | |
ticks total nonlib name | |
25 0.8% | |
[Shared libraries]: | |
ticks total nonlib name | |
2512 75.8% 0.0% /usr/lib/libSystem.B.dylib | |
668 20.2% 0.0% /usr/local/bin/node |
This file contains hidden or 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
import com.arc90.xmlsanity.validation.* | |
/* These scenarios were set up for an aluminum 13" Apple MacBook, | |
2.4 GHz Intel Core 2 Duo, 4 GB RAM, and an SSD; running OS X 10.6.2, Java 1.6.0_17 64-bit, and easyb 0.9.6 */ | |
scenario "Single-Threaded XSD validation should be fast", { | |
given "an XSD file", { | |
xsdFile = new File("resources/schemata/wadl.xsd") | |
} |
This file contains hidden or 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
// Listens on a port and just prints whatever it receives. | |
// Very useful for debugging | |
var net = require('net'), | |
sys = require('sys'); | |
var server = net.createServer(function (stream) { | |
stream.setEncoding('utf8'); | |
stream.addListener('connect', function () { |
This file contains hidden or 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
<cffunction name="prettyXml"> | |
<cfargument name="xml" required="yes" type="string" /> | |
<!--- initialize sax builder ---> | |
<cfset builder = createObject("java", "org.jdom.input.SAXBuilder").init()> | |
<!--- initialize the formatter ---> | |
<cfset format = createObject("java", "org.jdom.output.Format").getPrettyFormat()> | |
<!--- initialize the outputer ---> | |
<cfset out = createObject("java", "org.jdom.output.XMLOutputter").init(format)> |
This file contains hidden or 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
/*** SETTINGS ***/ | |
requestsToSend = args.length >= 1 ? args[0] as Integer : 1000 | |
concurrency = args.length >= 2 ? args[1] as Integer : 10 | |
port = args.length >= 3 ? args[2] as Integer : 3000 | |
/*** /SETTINGS ***/ |
This file contains hidden or 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
#!/usr/bin/env groovy -cp restlet-1.1.10/httpclient/* | |
/*** SETTINGS ***/ | |
requestsToSend = args.length >= 1 ? args[0] as Integer : 10000 | |
concurrency = args.length >= 2 ? args[1] as Integer : 10 | |
port = args.length >= 3 ? args[2] as Integer : 3000 |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Annotation Test</title> | |
<meta name="author" content="Avi Flax"> | |
<script src="dygraph-combined.js"></script> | |
<script> |
This file contains hidden or 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(doc) { | |
emit(null, doc._id); | |
} |
This file contains hidden or 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
#!/usr/bin/env groovy | |
@GrabResolver(name='restlet', root='http://maven.restlet.org/') | |
@Grab(group='org.restlet.jse', module='org.restlet', version='[2.0,2.1[') | |
@Grab('commons-lang:commons-lang:2.4') | |
import java.awt.* | |
import java.awt.datatransfer.* | |
import java.io.* | |
import java.util.logging.* |
OlderNewer