Skip to content

Instantly share code, notes, and snippets.

View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View .gitignore
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
@chaseadamsio
chaseadamsio / anchor-image-code.html
Last active Apr 15, 2020
A code example of how to nest an image in an anchor link with Markdown.
View anchor-image-code.html
<!-- The link we want our bower bird to point to -->
[1]: http://www.bower.io
<!-- The image url we want to use for our img tag source -->
[2]: http://bower.io/img/bower-logo.png
<!--
This will compile to two html nodes:
Anchor: [linked item][1]: <a href="1">linked item</a>
Image: ![alt text][2]: <img src="2" alt="alt text" />
View 01-introduction-to-docker.md

Introduction to Docker

Self-Paced Training Url: Docker Self-Paced Training

📝 denotes an exercise

Introduction

  • Agenda [1:50]
  • What Is Docker / Background / History? [2:25]
@chaseadamsio
chaseadamsio / moveFilesToNameWithDate.js
Last active Mar 20, 2019
script for mass moving files to <date-published>-<filename>
View moveFilesToNameWithDate.js
/**
* utility I used to rename all of my files based on the date
* so that I can use netlify+dropbox to "schedule" posts
* Example...
* original filepath: Apps/chaseadams.io/articles/2019/yolo.md
* frontmatter contains "date: "2019-01-01"
* new filepath: Apps/chaseadams.io/articles/2019/2019-01-01-yolo.md
*/
const fs = require("fs");
const path = require("path");
View taskmanagers.org

Selecting a Task Manager

Selecting a task management system has been a difficult task. I have a few options but I know what I like and none of the options I’ve found fit the bill.

  • What I’m looking for
  • A list of task managers
  • What I like/dislike about them all

What I’m looking for

@chaseadamsio
chaseadamsio / .bowerrc
Last active Oct 2, 2017
Gist for example bower project blog post.
View .bowerrc
{
"directory": "src/_lib",
"json": "bower.json"
}
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@chaseadamsio
chaseadamsio / post-receive.sh
Last active Jul 6, 2016
The post-receive hook that I use for deploying my Wordpress theme on a `git push`.
View post-receive.sh
#!/bin/sh
LOGFILE=./post-receive.log
DEPLOYDIR=$DEPLOYDIR # The place to deploy to.
echo -e "[log] Received push request at $( date +%F)" >> $LOGFILE
echo "[log] - Old SHA: $oldrev New SHA: $newrev Branch Name: $refname" >> $LOGFILE
echo "[log] Starting Deploy..." >> $LOGFILE