View find-window-ratio.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
View html5video.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#################################### | |
# Output file for HTML5 video # | |
# Requirements: # | |
# - handbrakecli # | |
# - ffmpeg # | |
# - ffmpeg2theora # | |
# # | |
# usage: # |
View controllers.application.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
}); |
View bs-config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
View max-settings-events.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
View Vagrantfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |