I hereby claim:
- I am ruffrey on github.
- I am ruffrey (https://keybase.io/ruffrey) on keybase.
- I have a public key whose fingerprint is 2F0D E27F 91D3 B701 1BF8 8376 FA24 5B5F 7252 8C7D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
lt-cred-mech=1 | |
realm=<IP ADDRESS> | |
relay-ip=<IP ADDRESS> | |
listening-ip=<IP ADDRESS> | |
tls-listening-port=5349 |
var API_KEY_NOT_SECRET = 'insert here'; | |
var xhr = new XMLHttpRequest(); | |
xhr.onload = function () { | |
console.log('response', JSON.parse(xhr.responseText)); | |
var img = document.createElement('img'); | |
img.src = JSON.parse(xhr.responseText).images[0].display_sizes[0].uri; | |
document.getElementsByTagName('body')[0].appendChild(img); | |
}; | |
xhr.onerror = function (e) { console.error(e); }; |
/*! | |
* Based on pixies particle parallax example by Timothy Poon. | |
* http://timothypoon.com/blog/demos/canvas-particle-parallax/ | |
* Copyright timothycpoon@gmail.com | |
* licensed BSD 3-clause http://opensource.org/licenses/BSD-3-Clause | |
* | |
* Edited gingerly by @ruffrey | |
* licensed MIT http://opensource.org/licenses/MIT | |
*/ | |
(function () { |
var app = angular.module('app', []); | |
app.filter('dateSuffix', function ($filter) { | |
var suffixes = ["th", "st", "nd", "rd"]; | |
return function (input) { | |
var dtfilter = $filter('date')(input, 'dd'); | |
var day = parseInt(dtfilter, 10); | |
var relevantDigits = (day < 30) ? day % 20 : day % 30; | |
var suffix = (relevantDigits <= 3) ? suffixes[relevantDigits] : suffixes[0]; | |
return suffix; |
license: mit |
function listRoutes(req, res, next) { | |
var routes = 'get post patch put delete', // which methods do you want to inspect? | |
ordered = [], | |
Controller = new require('../classes/Controller'), | |
tempController = new Controller("Account"), | |
No = tempController.no.toString(), | |
Plural = tempController.plural.toString(), | |
reString = config.odm.models.map( | |
function(m){ |
// Run this code from the javascript console on the following wikipedia page to generate the output JSON: | |
// http://en.wikipedia.org/wiki/List_of_UTC_time_offsets | |
var u = {}; | |
function sr(k){ | |
return function(){ | |
if($(this).text().indexOf('[')==-1) | |
u[k].push($(this).text()); | |
}; |
<span class="hide" id="cal-slide-tick"></span> | |
<div id="cal-slide-content"> | |
<ul class="unstyled"> | |
<% _.each(events, function(event){ %> | |
<li> | |
<span class="pull-left event <%= $(event).data('event-class') %>"></span> | |
<a href="<%= $(event).attr('href') %>" target="_blank" | |
data-event-id="<%= $(event).data('event-id') %>" | |
data-event-class="<%= $(event).data('event-class') %>" | |
class="event-item"> |