I hereby claim:
- I am tomayac on github.
- I am tomayac (https://keybase.io/tomayac) on keybase.
- I have a public key whose fingerprint is 6897 81EF 64CF F41E 7497 C1B4 5A9B C2AC 857C 0A63
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<link rel="manifest" href="https://jsbin-user-assets.s3.amazonaws.com/kinlan/manifest.json"> | |
<title>iOS Manifest Polyfill</title> | |
</head> | |
<body> |
var irc = require('irc'); | |
var request = require('request'); | |
var express = require('express'); | |
var http = require('http'); | |
var app = express(); | |
var server = http.createServer(app); | |
// IRC details for the recent changes live updates | |
var IRC_SERVER = 'irc.wikimedia.org'; | |
var IRC_NICK = 'YOUR_APP_NAME_HERE'; |
<html> | |
<head> | |
<title>navigator.getUserMedia() Demo</title> | |
</head> | |
<body> | |
<h1>See yourself?</h1> | |
If your browser supports | |
<span style="font-family:monospace;">navigator.getUserMedia()</span> | |
you should see yourself below. If you don't see yourself, try | |
downloading the |
// namespaced my implementation of the RDFa | |
// API using "LinkedData.API" to avoid confusion | |
// with real (and correcter) implementations. | |
LinkedData.API.data.setMapping( | |
'cc', | |
'http://creativecommons.org/ns#'); | |
// capture @rel="license"... | |
var licensedElements = LinkedData.API.getElementsByProperty('license'); | |
// ...and @rel="cc:license" |
'use strict'; | |
var async = require('async'); | |
var request = require('request'); | |
var ExpontentialSmoothingStream = require('exponential-smoothing-stream'); | |
var numbers = require('numbers'); | |
var geolib = require('geolib'); | |
var util = require ('./util.js'); |
// Test at http://www.meetup.com/Google-Developer-Group-Hamburg/events/222392017/ | |
document.querySelector('#rsvp-list').querySelectorAll('li') | |
[ | |
Math.floor( | |
Math.random() * | |
document.querySelector('#rsvp-list').querySelectorAll('li').length | |
) + 1 | |
].style.backgroundColor = | |
'rgb(' + | |
(Math.floor(Math.random() * 256)) + ',' + |
I hereby claim:
To claim this, I am signing this object:
// Full source | |
var source = new EventSource('http://wikipedia-edits.herokuapp.com/sse'); | |
var languages = {}; | |
var avgDeltas = {}; | |
source.addEventListener('message', function(e) { | |
var edit = JSON.parse(e.data); | |
if (!languages[edit.language]) { | |
languages[edit.language] = []; | |
} |
// Browse through your photo collection page-by-page, | |
// each time pasting the script in the console. | |
// Then save images one-by-one, or just "Save as" > "Web page complete". | |
// The alt attribute contains the original tweet text. | |
// License: CC0. Author: Thomas Steiner (tomayac). | |
var images = []; | |
Array.prototype.forEach.call(document.querySelectorAll('div[class~="user-photo"] a img'), function(img, i) { | |
img.src = /.*?\/thumb\/.*?/g.test(img.src) ? img.src.replace('/thumb/', '/large/') : img.src; | |
images[i] = '<img src="' + img.src + '" alt="' + img.alt.replace(/"/g, '"')+ '"/>'; | |
}); |