Skip to content

Instantly share code, notes, and snippets.

View tastapod's full-sized avatar

Daniel Terhorst-North tastapod

View GitHub Profile
@tastapod
tastapod / gist:1400366
Created November 28, 2011 13:16
Use async module to run multiple GETs simultaneously and call a function when they are all back
var urls = ['http://one.com', 'http://two.com'],
results = [];
async.forEach(urls, function(url, done) {
$.get(url, function(data) {
results.push(data);
done();
});
}, function(err) {
console.dir(results); // all results are back
@tastapod
tastapod / example.html
Created May 8, 2012 08:22 — forked from joelnet/example.html
Unobtrusive Knockout support library for jQuery
Choose a ticket class: <select id="tickets"></select>
<p id="ticketOutput"></p>
<script id="ticketTemplate" type="text/x-jquery-tmpl">
{{if chosenTicket}}
You have chosen <b>${ chosenTicket().name }</b>
($${ chosenTicket().price })
<button data-bind="click: resetTicket">Clear</button>
{{/if}}
function decodeBody(content, encoding) {
switch (encoding.toLocaleLowerCase()) {
case "base64":
content = content.replace(/\r/g, '');
return new Buffer(content, 'base64').toString('utf8');
case "quoted-printable":
case "7bit":
case "8bit":
content = content.replace(/\r/g, '');
@tastapod
tastapod / Acrostic.txt
Created August 22, 2012 14:37 — forked from JulianBirch/Acrostic.txt
Scrum described without using the word stupid.
Scrum is a best-practice software development methodology.
There are many advantages to using it in an enterprise development environment.
Unlike other methodologies, such as extreme programming, there is no need to change coding practices.
Project Managers will therefore find it easy to adopt and incorporate into their existing workflows.
Iterations with strict time-limited sprints greatly improve productivity.
Developer participation is enforced through the use of constant stand-up meetings.
Mostly people just robotically say what they did yesterday and what they are doing today, which is stupid.

Keybase proof

I hereby claim:

  • I am tastapod on github.
  • I am tastapod (https://keybase.io/tastapod) on keybase.
  • I have a public key whose fingerprint is 1459 8C1A F1C2 503A D415 A6BE 451A 09CB 8089 4922

To claim this, I am signing this object:

@tastapod
tastapod / orange-squash.json
Last active September 22, 2021 10:05
Orange NotePlan theme with vertical space condensed
{
"name": "Orange Squash",
"style": "Light",
"author": {
"name": "Daniel Terhorst-North",
"email": "[email protected]"
},
"editor": {
"backgroundColor": "#ffffff",
@tastapod
tastapod / charcoal-squash.json
Created October 29, 2021 11:23
Charcoal theme for NotePlan 3 with condensed line spacing
{
"name": "Charcoal Squash",
"style": "Dark",
"author": {
"name": "Daniel Terhorst-North",
"email": "[email protected]"
},
"editor": {
"backgroundColor": "#2E3235",
@tastapod
tastapod / .github-workflows-release-website.yml
Last active December 20, 2021 15:53
GitHub Action to build and push Hugo website to a separate GitHub Pages repo
name: Release website
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
@tastapod
tastapod / 000_WDR_template_COPY_ME.md
Last active June 29, 2022 18:41
Writing Decision Record (WDR) template we are using for coauthoring the Software Faster book

000 - Title that says what decision we made

  • Deciders: Daniel and Helen
  • Date: 2022-mm-dd
  • Obsoletes: WDR-nnn

Description

Prose description of the decision and its context. What did we decide? What caused us to make the decision? What else was going on at the time?