Record your screencasts as movie files (.mov) using quicktime.
- Install yasm http://yasm.tortall.net/Download.html
var get = require('simple-get'); | |
var snuggle = 'a0:02:dc:23:50:30'; | |
var dash_button = require('node-dash-button'); | |
var dash = dash_button(snuggle); | |
var hornURL = 'http://got-em.mybluemix.net/sounds/horn?room=stacktheplanet'; | |
dash.on("detected", function (){ | |
get(hornURL, (err, res) => { | |
if (err) return console.log(err); | |
console.log(new Date().toLocaleString() + ' - triggered horn'); |
package main | |
import ( | |
"log" | |
"net/http" | |
"github.com/gorilla/mux" | |
) | |
// FooList handles listing foos |
<!doctype html> | |
<html> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" /> | |
<body> | |
<div id="map"></div> | |
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script> | |
</body> | |
</html> |
import java.io.ByteArrayOutputStream; | |
public class Base64 | |
{ | |
public static String encode(byte[] data) | |
{ | |
char[] tbl = { | |
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P', | |
'Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f', | |
'g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v', |
emoji() { | |
emojis=("🍕 " "💩 " "🐶 " "🍣 " "🍔 " "🍪 " "🐳 ") | |
echo ${emojis[$RANDOM % ${#emojis[@]} ]} | |
} | |
set_bash_prompt() { | |
# Define your prompt formatting here | |
export PS1="\d \t \u:\w\n$(emoji) " | |
} |
Record your screencasts as movie files (.mov) using quicktime.
From an authenticated session of Postgres
# show hba_file;
hba_file
--------------------------------------
/etc/postgresql/9.3/main/pg_hba.conf
(1 row)
var orderCharge = require('stamps/orders/charge'); | |
db.orders.findOne( id, function (err, order ) { | |
var charge = orderCharge( order ); | |
// getTotal is from orders/base.js | |
charge.getTotal(); | |
// getApplicationCut is from orders/charge.js | |
charge.getApplicationCut(); |
var debounce = function(fn, interval) { | |
var lock = false; | |
var id; | |
return function debouncedFn() { | |
var args = arguments; | |
var invoke = function() { | |
lock = false; | |
fn.apply(null, args); |