Skip to content

Instantly share code, notes, and snippets.

@judell
judell / gist:9744381
Last active August 29, 2015 13:57
draft of CouchDB adaptor for TiddlyWiki
/*\
title: $:/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js
type: application/javascript
module-type: syncadaptor
A sync adaptor module for synchronising with Couch compatible servers
\*/
(function () {
@elf-pavlik
elf-pavlik / gist:7dae92d3236f7c48c8e1
Last active August 29, 2015 14:00
basic RDFa profile schema:Person
<html>
<body vocab="http://schema.org/">
<div typeof="Person">
<h1 property="name">elf Pavlik</h1>
<img property="image" src="http://www.gravatar.com/avatar/00000000000000000000000000000000" />
<p property="description">i like you :)</p>
<h2>social profiles</h2>
<ul>
<li><a property="sameAs" href="https://github.com/elf-pavlik">github</a></li>
<li><a property="sameAs" href="https://twitter.com/elfpavlik">twitter</a></li>
$ openssl s_client -starttls smtp -connect mx1.comcast.com:25 -showcerts -CApath /usr/share/ca-certificates/mozilla/
CONNECTED(00000003)
depth=0 C = US, postalCode = 19103, ST = PA, L = Philadelphia, street = 1 Comcast Center, O = Comcast Corporation, OU = Hosted by Comcast Corporation, OU = EliteSSL, CN = mx1.comcast.com
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 C = US, postalCode = 19103, ST = PA, L = Philadelphia, street = 1 Comcast Center, O = Comcast Corporation, OU = Hosted by Comcast Corporation, OU = EliteSSL, CN = mx1.comcast.com
verify error:num=27:certificate not trusted
verify return:1
depth=0 C = US, postalCode = 19103, ST = PA, L = Philadelphia, street = 1 Comcast Center, O = Comcast Corporation, OU = Hosted by Comcast Corporation, OU = EliteSSL, CN = mx1.comcast.com
verify error:num=21:unable to verify the first certificate
@elf-pavlik
elf-pavlik / code-for-all.jsonld
Last active August 29, 2015 14:03
Code for All
{
"@context": {
"@vocab": "http://schema.org/",
"name": { "@container": "@language" }
},
"@id": "http://codeforall.org",
"@type": "Organization",
"location": {
"@id": "http://sws.geonames.org/6295630/",
"@type": "Place",
@WardCunningham
WardCunningham / roster.rb
Last active August 29, 2015 14:13
Recent Changes by Roster
# create page of conversatons
# cron: */5 * * * * (cd wiki/farm-8080/client; CSV='...' ruby roster.rb)
# deploy: scp roster.rb fed.wiki.org:wiki/farm-8080/client/
require 'rubygems'
require 'json'
require 'csv'
require 'pp'
#!/bin/sh
# Auto suspend and wake-up script
#
# Puts the computer to sleep and automatically wakes it up after specified period
#
# Courtesy of http://ubuntuforums.org/member.php?u=130449
# from thread http://ubuntuforums.org/showthread.php?t=938533&page=2
# Edited by Romke van der Meulen <romke.vd.meulen@gmail.com>
#!/bin/bash
# Auto suspend and wake-up script
#
# Puts the computer to sleep and automatically wakes it up at specified time
#
# Written by Romke van der Meulen <romke.vd.meulen@gmail.com>
#
# Takes a 24-hour time HH:MM as its argument
# Example:

Ramesh Jain - Keynote

  • Semantic Gap for users (bits, chars, lists -> events/objects, concepts)
  • Data and users: triangle
  • Semantic gap exists in text too - search engines do little beyond string matching
  • Semantic web tools help, much still to do
  • Life - events, experiences and multimedia: eventweb
  • Lots of multimedia - raises problems
  • Multimedia semantics: many approaches
  • Content-based: different model layers (data -> concepts)
@sgillies
sgillies / with-descartes-reduce.py
Created March 11, 2012 06:17
Mapping and reducing
# Making maps with reduce()
from matplotlib import pyplot
from descartes import PolygonPatch
from fiona import collection
BLUE = '#6699cc'
def render(axes, rec):
"""Given matplotlib axes and a record, adds the record as a patch
@marijnvdwerf
marijnvdwerf / gist:2399778
Created April 16, 2012 16:25
Kirby CMS Nginx config?
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php last;
break;
}
}