Skip to content

Instantly share code, notes, and snippets.

View divideby0's full-sized avatar

Cedric Hurst divideby0

  • Spantree Technology Group, LLC
  • Chicago, IL
View GitHub Profile
bash-completion clojure cmake colortail couchdb erlang gdbm git git-flow gradle grails groovy icu4c maven mongodb mysql neon node nspr pidof pkg-config pwgen python rabbitmq readline repl rlwrap scala spidermonkey sqlite subversion tomcat tree
require 'formula'
class GitManuals < Formula
url 'http://ftp.uk.freesbie.org/sites/ftp.kernel.org/pub/software/scm/git-core/git-manpages-1.7.6.1.tar.bz2'
md5 'cae559424a62507cb2c15252d85a158e'
end
class GitHtmldocs < Formula
url 'http://kernel.org/pub/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
md5 'f698e0abbf1555582e30320930391c59'
<bean id="sql" class="grooovy.sql.Sql">
<constructor-arg ref="dataSource"/>
</bean>
@divideby0
divideby0 / gist:1365728
Created November 15, 2011 00:44
GrettyServer delivering static JSON response
import org.mbte.gretty.httpserver.GrettyServer
@GrabResolver(name='gretty', root='http://groovypp.artifactoryonline.com/groovypp/libs-releases-local')
@Grab('org.mbte.groovypp:gretty:0.4.302')
def server = new GrettyServer()
.localAddress(new InetSocketAddress(8080))
.defaultHandler { response.json = [foo: 'foo value', bar: 'bar value'] }
.start()
cedric@churst:$ wget http://cdn01.prezi.com/prezi/desktop/PreziDesktop_3.077.air
--2012-01-28 14:19:53-- http://cdn01.prezi.com/prezi/desktop/PreziDesktop_3.077.air
Resolving cdn01.prezi.com... 74.201.0.130
Connecting to cdn01.prezi.com|74.201.0.130|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 30121406 (29M) [application/x-zip]
Saving to: `PreziDesktop_3.077.air'
0% [> ] 260,580 --.-K/s in 0.1s
dojo.xhrGet({url: 'http://mcccon.mercurycc.com/blogs/roller-ui/rendering/feed/bobk/entries/atom?lang=en_us', handleAs: 'xml', load: function(data) { var entries = data.getElementsByTagName('entry'); dojo.forEach(entries, function(entry) { console.log(dojox.xml.parser.textContent(entry.getElementsByTagName('title')[0])) }) }})
dn: ou=people,o=sevenSeas
objectclass: organizationalUnit
objectclass: top
description: Contains entries which describe persons (seamen)
ou: people
dn: ou=groups,o=sevenSeas
objectclass: organizationalUnit
objectclass: top
description: Contains entries which describe groups (crews, for instance)
jbossbpm-users=user
jbossbpm-managers=manager
jbossbpm-admins=administrator
jaxb-impl-2.0EA3.jar
jaxb-xjc-2.0EA3.jar
jaxb-api-2.0EA3.jar
gpars-1.0-beta-3.jar
groovy-all-1.8.8.jar
jsr166y-1.7.0.jar
spock-core-0.6-groovy-1.8.jar
antlr-2.7.7.jar
protobuf-java-2.4.1.jar
h2-1.3.161.jar