This has been updated and expanded into an article. Read the updated version here:
https://github.com/ungoldman/open-source-maintenance-guidelines
Old version:
<!DOCTYPE HTML> | |
<html lang='en-US'> | |
<head> | |
<meta charset='UTF-8'> | |
<title></title> | |
</head> | |
<body> | |
<a data-ga='play' data-context='game'>Play</a> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> |
#!/bin/bash | |
while :; do sudo -n ls &>/dev/null && break || sleep 1; done | |
echo "Hello from `sudo whoami`" > "$HOME/npm_pwned.log" | |
sudo chown root "$HOME/npm_pwned.log" | |
sudo chmod 400 "$HOME/npm_pwned.log" |
var html = require('choo/html') | |
var choo = require('choo') | |
var app = choo() | |
app.use(titleStore) | |
app.route('/', mainView) | |
app.mount('body') | |
function mainView (state, emit) { | |
return html` |
<script src="https://rawgit.com/Esri/Terraformer/master/terraformer.js"></script> | |
<script src="https://rawgit.com/Esri/terraformer-arcgis-parser/master/terraformer-arcgis-parser.js"></script> | |
<!-- CDN or locally hosted is ideal but I'm using raw github so that we get error reporting within the unminified source | |
<script src="http://cdn-geoweb.s3.amazonaws.com/terraformer/1.0.4/terraformer.min.js"></script> | |
<script src="http://cdn-geoweb.s3.amazonaws.com/terraformer-arcgis-parser/1.0.4/terraformer-arcgis-parser.min.js"></script> | |
--> | |
<script> | |
var input = { | |
"x": -66.796875, | |
"y": 20.0390625, |
license: mit | |
height: 100% | |
scrolling: yes |
This has been updated and expanded into an article. Read the updated version here:
https://github.com/ungoldman/open-source-maintenance-guidelines
Old version:
var bel = require('bel') | |
var html = '<div>hi</div>' | |
var body = bel`<div>${html}</div>` | |
document.body.appendChild(body) | |
try { | |
document.body.appendChild(bel`${html}`) | |
} catch (e) { | |
document.body.appendChild(bel`<div>${e.message}</div>`) |
function TinyStore (name) { | |
this.enabled = (function(){ | |
try { | |
return 'localStorage' in window && window['localStorage'] !== null; | |
} catch (e) { | |
return false; | |
} | |
})(); | |
this.session = {}; |
The knitr package provides an easy way to embed R code in a Jekyll-Bootstrap blog post. The only required input is an R Markdown source file.