Skip to content

Instantly share code, notes, and snippets.

View Laurian's full-sized avatar

Laurian Gridinoc Laurian

  • Creative Technologist ※ Knight-Mozilla OpenNews Fellow ※ Visual analytics × Computational Linguistics × Semantic Web
  • Cyberspace
  • X @gridinoc
View GitHub Profile
//
CmdUtils.CreateCommand({
names: ["share command"],
// icon from http://mitcho.com/blog/projects/the-ubiquity-favicon-a-very-important-question/
icon: "http://mitcho.com/blog/wp-content/uploads/2009/06/ubiquibot-favicon3.png",
description: "Share the last Ubiquity command",
help: "How to use your command.",
author: {name: "Laurian Gridinoc", email: "laurian@gridinoc.name"},
license: "GPL",
homepage: "http://namebound.com/ubiquity/share/",
/*
*
*/
package com.namebound.cenobot;
import com.namebound.yeti.representation.RdfRepresentation;
import com.namebound.yeti.resource.Resource;
import com.namebound.yeti.resource.Store;
import java.io.IOException;
import java.net.URISyntaxException;
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:j.0="http://rdfs.org/sioc/ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >
<rdf:Description rdf:about="http://purl.org/net/cenobot/dfce00b1-f7f2-4689-84a8-a5ab2741ee67">
<dc:creator>nostriluu</dc:creator>
<dc:date>2010-09-15T17:55:45+0000</dc:date>
<dc:source>#p2pu-general/open-journalism-open-web</dc:source>
<j.0:content>still, a free, robust network supporting tens of thousands+ of chatters is pretty good</j.0:content>
GeekFromSaturn can punch a cyclops between the eye.
GeekFromSaturn has already been to Mars; that's why there are no signs of life.
Some magicans can walk on water, GeekFromSaturn can swim through land.
GeekFromSaturn can make a stuffed animal bleed.
GeekFromSaturn doesn't mow her lawn, she stands on the porch and dares it to grow
Death once had a near-GeekFromSaturn experience
GeekFromSaturn doesn't turn on the shower she looks at it untill it crys
GeekFromSaturn can do a wheelie on a unicycle
GeekFromSaturn doesnt bother to ask "Who's your daddy" because she knows.
GeekFromSaturn CAN eat soup with a fork
Silence. It flashed from the woodwork and the walls … From the useless pole lamp in the living room it oozed out … It managed in fact to emerge from every object within his range of vision, as if it — the silence meant to supplant all things tangible. Hence it assailed not only his ears but his eyes; as he stood by the inert TV set he experienced the silence as visible and, in its own way, alive. Alive!
 — "Do Androids Dream of Electric Sheep" by Philip K Dick
@Laurian
Laurian / gist:1115914
Created July 30, 2011 19:45
An experiment with QuestionGeneration-03-21-11 http://www.ark.cs.cmu.edu/mheilman/questions/

INPUT:

"Napoleon Bonaparte was born on 15 August 1769 in Corsica into a gentry family. Educated at military school, he was rapidly promoted and in 1796, was made commander of the French army in Italy, where he forced Austria and its allies to make peace. In 1798, Napoleon conquered Ottoman-ruled Egypt in an attempt to strike at British trade routes with India. He was stranded when his fleet was destroyed by the British at the Battle of the Nile."

OUTPUT (Question + Source/Answer + score):

What did Napoleon conquer Ottoman-ruled Egypt in in 1798? In 1798, Napoleon conquered Ottoman-ruled Egypt in an attempt to strike at British trade routes with India. in an attempt to strike at British trade routes with India 3.4447591093720233

Where was Napoleon Bonaparte born on 15 August 1769 into a gentry family? Napoleon Bonaparte was born on 15 August 1769 in Corsica into a gentry family. in Corsica 3.3303950841714114

location / {
root /var/www/$host;
index index.php index.html;
if (!-f /var/www/$host/$uri) {
rewrite ^/(.+)$ /index.php?q=$1 last;
}
}
location ~ \.php$ {
@Laurian
Laurian / gist:2262897
Created March 31, 2012 12:01
MedPack

Some people at SXSW were scared by my MedPack, here are the contents:

  • melatonin for jet lag
  • caffeine tablets
  • proton-pump inhibitors for controlling stomach acid secretion (sometimes I forget to eat, and I don't want to autodigest)
  • cetirizine, antihistaminic
  • betahistine for vertigo
  • scopolamine for motion sickness
  • ibuprofen
  • piracetam, a nootropic, good for hangover

We will give communities a new because it benefits to local people. Everyone wins.

Our platform is a storytelling platform is a living interface that are published in big media and the media and nuanced understanding of the media platforms by becoming contributors rather than mere “subjects”. The project will give communities a storytelling platform that are published in conjunction with, or in these mainstream media platforms by receiving more complete and want to local people. Everyone wins.

Our platform is a sensitive large market magazine piece about an Indian Reservation whose people feel misrepresented by receiving more complete and nuanced understanding of local storytellers on Cowbird.com, and consumers. Communities benefit by ensuring sustained traffic to attach collections of the media platforms by receiving more complete and the media websites.

Our first test case is a storytelling platform that are published in big media websites, and you have something quite revolutionary.

Exception in thread "main" java.lang.RuntimeException: Allocation of search manager resources failed
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.allocate(SimpleBreadthFirstSearchManager.java:650)
at edu.cmu.sphinx.decoder.AbstractDecoder.allocate(AbstractDecoder.java:87)
at edu.cmu.sphinx.recognizer.Recognizer.allocate(Recognizer.java:168)
at edu.cmu.sphinx.demo.aligner.Aligner.main(Aligner.java:103)
Caused by: java.io.FileNotFoundException: /Users/laurian/Downloads/sphinx4-1.0beta6-src/sphinx4-1.0beta6/bld/lm_giga_64k_nvp_3gram/means (No such file or directory)
at java.io.FileInputStream.open(Native Method)
with