Skip to content

Instantly share code, notes, and snippets.

@timhall
timhall / .block
Last active September 29, 2016 14:42
d3.compose Tooltip
license: mit
@timhall
timhall / .block
Last active September 29, 2016 14:45
d3.compose Error Bars
license: mit
@timhall
timhall / .block
Last active September 29, 2016 15:50
d3.compose Heatmap
license: mit
@timhall
timhall / .block
Last active October 18, 2016 14:14 — forked from john-clarke/.block
BAA Marathon and Half-Marathon results as a histogram
license: mit
height: 550
border: yes
@timhall
timhall / task-plugin-unification.md
Created July 27, 2017 13:04
Task / Plugin Unification
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 1 column 11
---
title: RFC: Task / Plugin Unification
---

Summary

This RFC presents an alternative plugin API that matches the current task API.

Unifying tasks and plugins should encourage task reuse (as plugins), simplify the overall API, and allow a single core mental model for how taskr tasks and plugins function.

@timhall
timhall / taskr-run.js
Created July 27, 2017 13:17
task.run, unified approach
const co = require('bluebird').coroutine;
let taskId = 0;
class Task {
constructor(values = {}) {
const { id = `task${taskId++}`, files = [], globs = [], value } = values;
this.id = id;
this.files = files;
this.globs = globs;

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@timhall
timhall / gist:c88e52a71acc45243bbb
Last active October 23, 2017 22:14
Excel-REST - Smartsheet API: Update
' curl https://api.smartsheet.com/1.1/row/{rowId}/cells \
Dim Request As New RestRequest
Request.Resource = "row/{rowId}/cells"
Request.AddUrlSegment "rowId", "RowId..."
' -H "Authorization: Bearer ACCESS_TOKEN" \
Request.AddHeader "Authorization", "Bearer ACCESS_TOKEN is set in authenticator"
' -H "Content-Type: application/json" \
Request.RequestFormat = json
@timhall
timhall / App.html
Last active November 27, 2017 20:10
svelte-router
<Route path="/" exact>
Home
</Route>
<Route path="/a">
A
<Route path="/a/nested">Nested</Route>
</Route>
<Route path="/b/:id">
B {{$router.params.id}}
</Route>
@timhall
timhall / gist:bab59824216aefb5f61b
Created November 9, 2014 02:03
Excel-REST Basic Authentication
' Create Client
Dim Client As New RestClient
Client.BaseUrl = "https://..."
' Create HttpBasicAuthenticator
' https://github.com/timhall/Excel-REST/tree/master/authenticators
Dim Auth As New HttpBasicAuthenticator
Auth.Setup "Username", "Password"
' Add Authenticator to Client