Skip to content

Instantly share code, notes, and snippets.

View dalsgaard's full-sized avatar

Kim Dalsgaard dalsgaard

View GitHub Profile
@dalsgaard
dalsgaard / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@dalsgaard
dalsgaard / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
var sys = require('sys');
var http = require('http');
var host = '127.0.0.1';
var couch = http.createClient(5984, host);
var listen = function() {
sys.log("listening");
var request = couch.request('GET', '/demo/_changes?feed=continuous', {'host': host});
module RDFMapper
class << self
def to_rdf(obj)
mapping = obj.rdf_mapping
uri = obj.uri
data = "<#{uri}>\n" unless mapping.empty?