Skip to content

Instantly share code, notes, and snippets.

View austinhinderer's full-sized avatar

Austin Hinderer austinhinderer

View GitHub Profile
<video id="movie" width="320" height="240" preload controls> <source src="pr6.webm" type="video/webm; codecs=vp8,vorbis" /> <source src="pr6.ogv" type="video/ogg; codecs=theora,vorbis" /> <source src="pr6.mp4" /> <object width="320" height="240" type="application/x-shockwave-flash" data="flowplayer-3.2.1.swf"> <param name="movie" value="flowplayer-3.2.1.swf" /> <param name="allowfullscreen" value="true" /> <param name="flashvars" value="config={'clip': {'url': 'http://wearehugh.com/dih5/pr6.mp4', 'autoPlay':false, 'autoBuffering':true}}" /> <p>Download video as <a href="pr6.mp4">MP4</a>, <a href="pr6.webm">WebM</a>, or <a href="pr6.ogv">Ogg</a>.</p> </object></video><script> var v = document.getElementById("movie"); v.onclick = function() { if (v.paused) { v.play(); } else { v.pause(); } };</script>
@austinhinderer
austinhinderer / Vertical Center SASS Mixin
Created September 19, 2013 02:39
This SASS mixin will vertically center a child element inside its parent.
@mixin vertical-center($childSelector) {
& {
display: table;
width: 100%;
#{$childSelector} {
display: table-cell;
text-align: center;
vertical-align: middle;
}
import React from 'react';
import CSSModules from 'react-css-modules';
import styles from './ProgressButton.css';
import ProgressBar from '../ProgressBar';
class ProgressButton extends React.Component {
constructor(props) {
super(props);
this. _onClick = this. _onClick.bind(this);
import React from 'react';
import CSSModules from 'react-css-modules';
import styles from './ProgressButton.css';
import ProgressBar from '../ProgressBar';
class ProgressButton extends React.Component {
constructor(props) {
super(props);
this. _onClick = this. _onClick.bind(this);
import React from 'react';
import CSSModules from 'react-css-modules';
import styles from './ProgressButton.css';
import ProgressBar from '../ProgressBar';
class ProgressButton extends React.Component {
constructor(props) {
super(props);
this. _onClick = this. _onClick.bind(this);
@austinhinderer
austinhinderer / ActiveRecord::Migrator.migrate
Created August 29, 2019 00:45
Update ActiveRecord::Migrator.migrate in Ruby on Rails for 5.2.X
migration_path = Rails.root.join('db/migrate')
if ActiveRecord.gem_version >= ::Gem::Version.new("5.2.0")
ActiveRecord::MigrationContext.new(migration_path).migrate
else
ActiveRecord::Migrator.migrate(migration_path)
end