Skip to content

Instantly share code, notes, and snippets.

View jaukia's full-sized avatar

Janne Aukia jaukia

  • Robocorp
  • Helsinki, Finland
View GitHub Profile
@jshaw
jshaw / index.html
Created February 20, 2015 21:56
Google Streetview Example
<!DOCTYPE html>
<html>
<head>
<title>Custom Street View panorama tiles</title>
<meta charset="utf-8">
<style>
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
@staltz
staltz / introrx.md
Last active May 6, 2024 01:44
The introduction to Reactive Programming you've been missing
@johanhalse
johanhalse / gist:9049840
Created February 17, 2014 12:39
JavaScript concatenation and uglification with Harp server
// Wrapper for Harp web server, to include JS concat/compile step. Put your stuff
// in /harp subdirectory, npm install your dependencies, run, enjoy.
// Live updating of the concatenated JS file left as an exercise for the reader :)
var fs = require('fs');
var path = require('path');
var harp = require('harp');
var UglifyJS = require('uglify-js');
var files = [];
files.push(__dirname + '/harp/js/file0.js');
@ofca
ofca / $.3.js
Last active February 20, 2021 13:30
// based on https://gist.github.com/Potfur/5576225 & https://github.com/james2doyle/saltjs
// more info: https://plus.google.com/109231487156400680487/posts/63eZzzrBSb6
window.$ = function(s) {
var c = {
'#': 'ById',
'.': 'sByClassName',
'@': 'sByName',
'=': 'sByTagName'}[s[0]];
return document[c?'getElement'+c:'querySelectorAll'](s.slice(1))
};
@owainlewis
owainlewis / finder.py
Created April 24, 2013 18:46
A script that searches for all available single word .io domains and saves the results to file
#!/usr/bin/python
# ***************************************
#
# A script that finds all available single word .io domains
#
# use: python finder.py
#
# Results are saved in results.txt
#