This seems like a decent new env.
There's some seriously crazy $hit possible with this software:
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(); | |
} | |
function onOpen() { | |
var s = SpreadsheetApp.getActiveSpreadsheet(); | |
var menu = [ {name: "Execute SPARQL", functionName: "execQuery"}]; | |
s.addMenu("Query", menu); | |
} | |
function execQuery() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var querystring = sheet.getRange("A1").getValue(); | |
var url = sheet.getRange("A2").getValue() + "?output=json&query=" + escape(querystring); |
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. |
package spark.example | |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.SparkConf | |
object SparkGrep { | |
def main(args: Array[String]) { | |
if (args.length < 3) { | |
System.err.println("Usage: SparkGrep <host> <input_file> <match_term>") |