This seems like a decent new env.
There's some seriously crazy $hit possible with this software:
#!/bin/bash | |
while [ true ] ; do echo 'Hello Marathon' ; sleep 5 ; done |
import sys | |
import urlparse | |
import BaseHTTPServer | |
import redis | |
r = redis.StrictRedis(host='10.141.141.10', port=31000, db=0) | |
class WebApp(BaseHTTPServer.BaseHTTPRequestHandler): | |
def do_GET(self): |
CmdUtils.CreateCommand({ | |
name: "lookupNdbpedia", | |
takes: {"term": noun_arb_text}, | |
homepage: "http://di2.deri.org/", | |
author: { name: "Michael Hausenblas", email: "michael.hausenblas@deri.org"}, | |
license: "MPL", | |
description: "performs a lookup on DBpedia (http://dbpedia.org)", | |
preview: function(previewBlock, term) { | |
previewBlock.innerHTML = "looking up " + term.text + " at DBpedia ... "; |
npm info it worked if it ends with ok | |
npm info using npm@0.2.17 | |
npm info using node@v0.2.6 | |
npm ERR! Error connecting to server http://registry.npmjs.org/npm | |
npm ERR! Error: ETIMEOUT, Timeout while contacting DNS servers | |
npm ERR! at Timer.callback (dns:15:13) | |
npm ERR! at node.js:773:9 | |
npm ERR! Report this *entire* log at <http://github.com/isaacs/npm/issues> | |
npm ERR! or email it to <npm-@googlegroups.com> | |
npm ERR! Just tweeting a tiny part of the error will not be helpful. |
function onOpen() { | |
execQuery(); | |
} | |
function bqeApp() { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var app = UiApp.createApplication().setTitle("Execute Query against BQE API"); | |
app.setStyleAttribute("padding", "10px"); | |
var button = app.createButton('Execute!'); |
// BigQuery Endpoint Wrapper for Apps Script | |
// see http://code.google.com/p/bigquery-linkeddata/ | |
// Michael Hausenblas | |
// http://sw-app.org/mic.xhtml#i | |
function onOpen() { | |
execQuery(); | |
} | |
import zookeeper, threading, sys | |
ZOO_OPEN_ACL_UNSAFE = {"perms":0x1f, "scheme":"world", "id" :"anyone"}; | |
class ZKSimpleRDFStore(object): | |
SERVER_PORT = 2181 | |
def __init__(self): | |
self.host = "localhost:%d" % self.SERVER_PORT | |
self.connected = False |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix schema: <http://schema.org/> . | |
@prefix : <http://example.org/#> . | |
:a_page a schema:WebPage ; | |
rdfs:label "the cool page" ; | |
schema:relatedLink :the_other_page ; | |
. |
!(/\.(?!.)[^/]*|\.(tmproj|o|pyc|gitignore|DS_Store)|/Icon\r|/svn-commit(\.[2-9])?\.tmp)$ | |
Paste into TextMate -> Preferences -> Advanced in the 'File Pattern:' text input field. |