Skip to content

Instantly share code, notes, and snippets.

@chrisprice
chrisprice / .block
Created September 5, 2018 12:25
Line / Area Chart
license: mit
@chrisprice
chrisprice / .block
Created September 4, 2018 08:54
Force Index
license: mit
<html><head><script>var colourTable=(function(){var a=["33","7F","FF"],c=[];for(r=0;r<3;r++){for(g=0;g<3;g++){for(b=0;b<3;b++){c.push("#"+a[r]+a[g]+a[b])}}}return c})();var words="Mix10ArmsFireCureWineTripHandTubeYahooLowWindyManyWeirdWasPlzBoutDanceAwareTurnBoysLarkDearToneAgeDutyWontRanLabelOpenRobLoudLinuxFitIceFullyCountOnlyWokeSnowyWanaWeReadyRubsAgoPortPoorCashLawBlackStuffSingsHugsCatsWombGoingLikeEachSleepAbtWitRainFirstWinSawSoftSafeAwakeEntryShowLogicVotedEveryHopeCakeDefUUsingWhereNoneSkinCityCurseBassIdPicksOtherTellForthIshDoorPorkVirusTypeHeyBigBetGirlsWheelBringPlayBabyCardsClockGottaKnowTyneRunHellNewNiceLegoYourGlassWannaLossBodyHoLikesPixelTownFarDavisCantAcheDamnNayPantsRodeEvenPlaysToldEasyHmmmIdiotMiThatMiamiBusyWorthJkFedMessSheZapFabGamesTheirQueenAdamsPodRestWellFootKeepPopSiteTwugNanSuitsBulbAyMoralHowsSideGetKnownFruitPubBellaHesFloorShudWebLifeWifeHearJavaCatchLineFeelStartRoomSendBugsHeardIntoDontBearFatIveSeemsRoseZitsDjMightDoneBlindGonPlsCuteMeatBWimpTvFaceViewDripHootGirlEarsBo
const { totalCols,
leftCols,
frontCols,
rightCols,
backCols,
totalRows, } = config
// https://d3js.org/d3-collection/ Version 1.0.1. Copyright 2016 Mike Bostock.
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.d3=n.d3||{})}(this,function(n){"use strict";function t(){}function e(n,e){var r=new t;if(n instanceof t)n.each(function(n,t){r.set(t,n)});else if(Array.isArray(n)){var i,u=-1,o=n.length;if(null==e)for(;++u<o;)r.set(u,n[u]);else for(;++u<o;)r.set(e(i=n[u],u,n),i)}else if(n)for(var s in n)r.set(s,n[s]);return r}function r(){function n(t,i,u,o){if(i>=a.length)return null!=f?f(t):null!=r?t.sort(r):t;for(var s,c,h,l=-1,v=t.length,p=a[i++],y=e(),d=u();++l<v;)(h=y.get(s=p(c=t[l])+""))?h.push(c):y.set(s,[c]);return y.each(function(t,e){o(d,e,n(t,i,u,o))}),d}function t(n,e){if(++e>a.length)return n;var r,i=h[e-1];return null!=f&&e>=a.length?r=n.entries():(r=[],n.each(function(n,i){r.push({key:i,values:t(n,
@chrisprice
chrisprice / index.js
Created April 19, 2016 11:40
Mondo transaction webhook to Pebble Timeline integration
var validate = require('@smallwins/validate')
var lambda = require('@smallwins/lambda')
var Timeline = require('pebble-api').Timeline
function valid (event, callback) {
var schema = {
'query': { required: true, type: Object },
'query.token': { required: true, type: String },
'body': { required: true, type: Object },
'body.data': { required: true, type: Object },
@chrisprice
chrisprice / README.md
Last active January 27, 2016 22:52 — forked from ColinEberhardt/README.md
A tweetable d3 animation
@chrisprice
chrisprice / d3fc.d.ts
Created October 7, 2015 14:41 — forked from alisd23/d3fc.d.ts
d3fc.d.ts
declare module d3fc {
export var version: string;
module util {
export function extent(data: any, fields: any[]) : any[]
}
module series {
export function ohlc(): any
@chrisprice
chrisprice / d3fc.d.ts
Created October 7, 2015 14:39
d3fc.d.ts
declare module d3fc {
export var version: string;
module util {
export function extent(data: any, fields: any[]) : any[]
}
module series {
export function candlestick() : any
@chrisprice
chrisprice / Layout.js
Last active September 21, 2022 10:10
low barrel
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
var computeLayout = (function() {
@chrisprice
chrisprice / gist:4223787
Created December 6, 2012 11:20
Videoed talk run order
  • Intro
    • What is PC?
    • Platform choice? No BB
  • Native
  • Adobe Air
  • jQuery Mobile
  • Sencha Touch 2
  • Titanium
  • Xamarin