Skip to content

Instantly share code, notes, and snippets.

@dubbs
dubbs / machine.js
Last active August 15, 2021 21:40
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@dubbs
dubbs / machine.js
Last active May 12, 2021 20:59
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@dubbs
dubbs / index.html
Created June 14, 2013 04:15
A CodePen by Kevin Warrington. CSS inner/outer shadow with outline - Experimenting with inner/outer shadows and text outline
<h1>OLIVE</h1>
@dubbs
dubbs / suffix.js
Last active December 17, 2015 02:19 — forked from redoPop/suffix.js
var suffix = function (n) {
n = n % 10;
return n > 3 ? 'th' : ['th', 'st', 'nd', 'rd'][n];
};
// suffix(1) => "st"
// suffix(102) => "nd"
// suffix(113) => "th"
@dubbs
dubbs / commands.markdown
Last active June 23, 2016 13:46
Commands

GIT

reset local branch to HEAD of remote

git fetch --all
git reset --hard origin/mybranch
yeoman build:minify
yeoman server:dist
yeoman server
<!-- build:css styles/min.css -->
<link rel="stylesheet" href="stylesheets/app.css">
<!-- endbuild -->
<!-- build:js scripts/min.js -->
<script src="scripts/foundation/jquery.js"></script>
<!-- endbuild -->
mkdir myproject && cd myproject
yeoman init quickstart && cd app
require 'zurb-foundation'
http_path = "/"
css_dir = "styles"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "scripts"