Skip to content

Instantly share code, notes, and snippets.

<!-- Paste this script where you want the map to be shown -->
<script id="stay22-script">
document.addEventListener("DOMContentLoaded", function(e) {
// 1. Edit widget size
var settings22 = {
width: '100%', // set the width in px or %
height: '375px' // set the height in px or %
};
// 2. Fill out your config here and the rest should work
package main
import "os"
import "fmt"
import "strings"
import "io/ioutil"
var err error
var blob string
var path = "/etc/munin/munin-conf.d/hosts.conf"

Keybase proof

I hereby claim:

  • I am trevorstarick on github.
  • I am trevorstarick (https://keybase.io/trevorstarick) on keybase.
  • I have a public key ASClawy7xBWRF7FRQZGHrqp0O9dG5OrQ6mHkV9MRlwAgOQo

To claim this, I am signing this object:

const GLfloat hex[] = {
0, 0.25, -0.5,
...
0, 1, 0.25
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<style>
@font-face {
font-family: 'Proxima Nova' !important;
var request = require('request');
var cheerio = require('cheerio');
function lorem(page, cb) {
request.get(page, function(e, r, b) {
var $ = cheerio.load(b);
return cb($('p').text());
});
}
Verifying I am +trevorstarick on my passcard. https://onename.com/trevorstarick
{
"status": 404,
"address": "foobar",
"route": {
"path": "/places/:address",
"stack": [{
"name": "<anonymous>",
"keys": [],
"regexp": {},
"method": "get"
@trevorstarick
trevorstarick / routes.js
Created December 11, 2014 06:59
Basic Example
/*jslint node: true */
'use strict';
var mongoose = require('mongoose');
mongoose.set('debug', true);
var u = 'mongodb://xxxx:xxxxxxxxx@xxx.xxxxx.xxxxx';
var db = mongoose.createConnection(u);
var collection = db.model('test', new mongoose.Schema({}), 'test');
// degrees to radians
var deg2rad = function(degrees) {
return Math.PI * degrees / 180.0
}
// radians to degrees
var rad2deg = function(radians) {
return 180.0 * radians / Math.PI
}
// Semi-axes of WGS-84 geoidal reference