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
;;;; A simple Google Chart wrapper for Common Lisp | |
;;; | |
;;; API reference: http://code.google.com/apis/chart/ | |
;;; | |
;;; WARNING: Incomplete and buggy -- still has much to be done, e.g.: | |
;;; | |
;;; * more thorough testing (that won't be hard...) | |
;;; | |
;;; * handle spaces/newlines appropriately |
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
(set-macro-character #\⌋ (get-macro-character #\))) | |
(set-macro-character #\⌊ | |
(lambda (stream char) | |
(declare (ignore char)) | |
(prog1 `(floor ,(read stream t nil t)) | |
(let ((char (peek-char t stream t nil t))) | |
(if (char= char #\⌋) | |
(read-char stream t nil t) | |
(error 'reader-error :stream stream)))))) |
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
// ==UserScript== | |
// @name Add Pagination For My Gists To Top | |
// @namespace gistGithubAddPaginationToTop4MyGists | |
// @include /^http:\/\/gist\.github\.com\/mine([?#].*)?$/i | |
// @include http://gist.github.com/mine* | |
// @match http://gist.github.com/mine* | |
// @datecreated 2010-03-21 | |
// @lastupdated 2010-03-21 | |
// @version 0.1 | |
// @author Erik Vergobbi Vold |
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
(defclass cons-presentation-mixin () | |
((car-type :accessor cons-presentation-car-type | |
:initarg :car-type) | |
(cdr-type :accessor cons-presentation-cdr-type | |
:initarg :cdr-type)) | |
(:documentation "A presentation for conses.")) | |
(defclass cons-presentation (presentation cons-presentation-mixin) | |
() | |
) |
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
# http://www.google.com/uds/GwebSearch?q=foo%20bar&v=1.0 | |
{ responseStatus: 200 | |
, responseData: | |
{ results: | |
[ { visibleUrl: 'www.foobar2000.org' | |
, titleNoFormatting: 'foobar2000' | |
, cacheUrl: 'http://www.google.com/search?q=cache:obAJTkESjhwJ:www.foobar2000.org' | |
, title: 'foobar2000' | |
, content: 'Media player with simple UI and low memory use. Offers plugin support for new features. Includes link to forum focused on application. [Win32]' |
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
require 'rubygems' | |
require 'json' | |
require 'hpricot' | |
require 'open-uri' | |
def google_search(service,query,page,options=nil) | |
url = "http://ajax.googleapis.com/ajax/services/search/#{service}?v=1.0&q=#{query}&start=#{page}0" | |
url += options.to_s | |
url += "&key=ABQIAAAAvJK0-O6R9IuRS5y6YePa_BQ7FXN5Ck7MXp2rPPrMwF-0TtPdBhSCDq3eiNkPUQlaeTXgVbm7vRuvyw" | |
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
I've just put up a large chunk of my Twitter archives up on the | |
Talis Platform service. Talis Platform is a 'cloud'-based | |
triplestore hosting service. More at http://n2.talis.com | |
A triplestore is like a database but for graphs of RDF triples. | |
The cool thing about RDF and the triplestore is that you | |
basically have a completely schema-less datastore. You don't have | |
to figure out "Oh, there's integers going in this field and | |
strings going in that". You just upload a big pile of RDF and the | |
triplestore keeps it all there. This is obviously not as efficient | |
as using a database, so if you want to grow to Google size, it may |
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 ruby | |
require 'rubygems' | |
require 'rdf/rdfa' | |
graph = RDF::Graph.load('http://rdfa.digitalbazaar.com/test-suite/test-cases/xhtml1/0001.xhtml', :base_uri => 'http://rdfa.digitalbazaar.com/test-suite/test-cases/xhtml1/0001.xhtml') | |
graph.each_statement do |statement| | |
statement.inspect! | |
end |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
<title>Stack Simulator</title> | |
<link rel="stylesheet" type="text/css" href="../../../resources/css/ext-all.css" /> | |
<script type="text/javascript" src="../../../bootstrap.js"></script> | |
<script> | |
Ext.require(['Ext.chart.*', 'Ext.data.*']); | |
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
;;;; qdiff.lisp | |
(defpackage #:qdiff | |
(:use #:cl) | |
(:shadowing-import-from #:ql-dist | |
#:name | |
#:release | |
#:ensure-local-archive-file | |
#:base-directory | |
#:prefix) |
OlderNewer