Skip to content

Instantly share code, notes, and snippets.

Avatar

Don Denton happycollision

View GitHub Profile
View max-settings-events.ts
const Settings = {
firstNameFocus: m("Settings", "First Name", "Component Interaction", "Begin"),
firstNameChange: m("Settings", "First Name", "Component Interaction", "Update"), // ??? maybe add this directly to the call?
changePasswordClick: m("Settings", "Password Change", "Component Interaction", "View"),
passwordCurrentFocus: e("Password Change", "Current Password", "Component Interaction", f(value, beginOrUpdate)),
passwordNewFocus: e("Password Change", "New Password", "Component Interaction", f(value, beginOrUpdate)),
passwordNewConfirmFocus: e( "Password Change", "New Password Confirm", "Component Interaction", f(value, beginOrUpdate) ),
passwordSubmitBtnClick: m("Password Change", "Update Password", "Component Interaction", "Update"),
passwordCancelBtnClick: m("Password Change", "Cancel", "Component Interaction", "Hide"), // Btn does not exist. It should.
@happycollision
happycollision / controllers.application.js
Last active Apr 13, 2018 — forked from samselikoff/mirage.config.js
Mirage issue with associations
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
});
@happycollision
happycollision / bs-config.js
Created Sep 5, 2016
Rails and Browsersync without a need for Gulp or Grunt. Thanks to @wnstn and @maykefreitas.
View bs-config.js
// This gist is based on @wnstn's great [gist](https://gist.github.com/wnstn/36010c8378e850cc3580)
// and @maykefreitas's [advice](https://github.com/BrowserSync/browser-sync/issues/977#issuecomment-236443965) about turbolinks.
// Code below is generated after running `browser-sync init` in your project's root directory.
// I commented the lines I changed or added so you can run it from scratch as well, if you like.
/*
|--------------------------------------------------------------------------
| Browser-sync config file
@happycollision
happycollision / find-window-ratio.js
Created Sep 17, 2015
This script overlays a fixed-ratio, semi-transparent div on screen and changes colors once your browser viewport is a given ratio.
View find-window-ratio.js
/*
Find Window Ratio
By Don Denton
don@happycollision.com
For example, a 16:9 ratio:
1. Copy/paste this whole thing into your console and hit enter/return.
2. Then use the command `findWindowRatio(16,9)` to find a viewport size
@happycollision
happycollision / Vagrantfile
Created Jan 17, 2014
A nice little Vagrantfile that spins up a MySQL server and loads in the data from your .sql file sitting next to it.
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This Vagrantfile (vagrantup.com) spins up a MySQL server with your data
# already loaded. Many of the settings below are the same suggestions you get
# from `vagrant init`.
#
# Just be sure that (if you want data loaded) you have your .sql file sitting
# in the directory that will be shared to the guest. Usually this is the folder
# that your Vagrantfile is in. The database and user will have the same name as
@happycollision
happycollision / html5video.sh
Last active Dec 14, 2015 — forked from markupboy/html5video.sh
Playing with some alterations to plop it into my workflow.
View html5video.sh
#!/bin/sh
####################################
# Output file for HTML5 video #
# Requirements: #
# - handbrakecli #
# - ffmpeg #
# - ffmpeg2theora #
# #
# usage: #
You can’t perform that action at this time.