Skip to content

Instantly share code, notes, and snippets.

View stevemeisner's full-sized avatar
💡

Steve Meisner stevemeisner

💡
View GitHub Profile
### Keybase proof
I hereby claim:
* I am stevemeisner on github.
* I am snp_crkl_oops (https://keybase.io/snp_crkl_oops) on keybase.
* I have a public key ASC5n7s7Al6g2-DRz35lsHl0MC-q3a_3-4bwDzh7ezw2tgo
To claim this, I am signing this object:
@stevemeisner
stevemeisner / mov-to-webm-or-mp4.md
Created May 15, 2019 01:47
MOV to WEBM or MP4 with ffmpeg

Helpful one liners for creating various video formats from other sources (namely mov files).

MOV to WEBM

Found this thanks to David Walsh, and archiving it here for me (and whoever else).

ffmpeg -i trailer.mov -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis trailer.webm

MOV to MP4

@stevemeisner
stevemeisner / dabblet.css
Created December 2, 2014 14:39 — forked from LeaVerou/dabblet.css
Move in a circle without wrapper elements
/**
* Move in a circle without wrapper elements
* Idea by Aryeh Gregor, simplified by Lea Verou
*/
@keyframes rot {
from {
transform: rotate(0deg)
translate(-150px)
rotate(0deg);
@stevemeisner
stevemeisner / 301 Insert.sql
Last active December 23, 2015 09:28
How to efficiently do 301's for Typewriter
INSERT INTO `redirects` (`match`, `redirect_to`, `account_id`, `created_at`, `updated_at`)
VALUES
('/old_page.php', '/new/page', 40, NOW(), NOW()),
('/old_page_two.php', '/new/page/two', 40, NOW(), NOW()),
('/old_page_three.php', '/new/page-two', 40, NOW(), NOW());
@stevemeisner
stevemeisner / sass @mixins
Created August 8, 2013 11:44
Reusable SASS @Mixins.
// Reusable media query
@mixin maxWidth-x($maxWidth, $orientation:"") {
@if $orientation != "" {
@media only screen and (max-width : $maxWidth) and (orientation:$orientation) {
@content;
}
}
@if $orientation == "" {
@media only screen and (max-width : $maxWidth) {
@content;
<?php
class Profile extends AppModel {
var $name = 'Profile';
var $actsAs = array('Containable');
var $hasMany = array(
'Answer' => array(
'className' => 'Answer',
'foreignKey' => 'profile_id',