Skip to content

Instantly share code, notes, and snippets.

Chris Price chrisprice

Block or report user

Report or block chrisprice

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chrisprice
chrisprice / .block
Created Sep 5, 2018
Line / Area Chart
View .block
license: mit
View index.html
<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
View gist:318ab8e6b1f46bbd3729d6f20884f3d8
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 Apr 19, 2016
Mondo transaction webhook to Pebble Timeline integration
View index.js
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 Jan 27, 2016 — forked from ColinEberhardt/README.md
A tweetable d3 animation
View README.md
View 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
View 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
View Layout.js
/**
* 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 Dec 6, 2012
Videoed talk run order
View gist:4223787
  • Intro
    • What is PC?
    • Platform choice? No BB
  • Native
  • Adobe Air
  • jQuery Mobile
  • Sencha Touch 2
  • Titanium
  • Xamarin
You can’t perform that action at this time.