Skip to content

Instantly share code, notes, and snippets.

View jmwhittaker's full-sized avatar

James Whittaker jmwhittaker

View GitHub Profile
@jmwhittaker
jmwhittaker / dabblet.css
Created August 9, 2013 12:41
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
button {
background:#ccc;
border:1px solid #bbb;
font-size:30px;
padding:10px;
.ghx-avatar .ghx-avatar-img {
width:42px;
height: 42px;
border-radius:2px;
}
.ghx-avatar {
position: absolute;
top: 5px;
right: 5px;
@jmwhittaker
jmwhittaker / gist:8516514
Last active December 13, 2024 21:09
Use FFmpeg to resize and generate .mp4 & .webm videos from any source video.
/**
Scaling
- Scale can be used as is which will set the height to 560 but keep aspect ratio for width.
- Other options include setting both with & height
- Watch out for sizing errors when not divisible by 2
**/
/** MP4 1st pass **/
ffmpeg -i input.mov -vcodec libx264 -vprofile high -preset veryslow -b:v 225k -maxrate 300k -bufsize 1000k -vf scale=-1:560 -threads 2 -pass 1 -an -f mp4 /dev/null
@jmwhittaker
jmwhittaker / gruntfile.js
Created February 11, 2014 10:44
Simple grunt script for working with Framer.js locally.
module.exports = function (grunt) {
"use strict";
// Config...
grunt.initConfig({
watch: {
options: {
livereload: true
},
html: {
@jmwhittaker
jmwhittaker / dabblet.css
Created June 3, 2014 13:27
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.badge {
position:absolute;
left:200px;
top:200px;
background:red;
@jmwhittaker
jmwhittaker / dabblet.css
Created June 5, 2014 16:23
Utility Methods
* {
box-sizing:border-box;
}
.multimedia-container {
/* Size of container set via JS depending upon col width */
width:528px;
height:264px;
border-radius:5px;
@jmwhittaker
jmwhittaker / dabblet.css
Created June 9, 2014 15:34
Utility Methods
* {
box-sizing:border-box;
}
.multimedia-container {
width:528px;
border-radius:5px;
overflow:hidden;
height:264px;
/* Just for testing */
body, table td, select {
font-family: "Helvetica Neue", helvetica, sans-serif;
font-size: 28px;
color: #333 !important;
}
.screenHeader {
display: none !important;
}
@jmwhittaker
jmwhittaker / jirastyle
Created July 15, 2014 16:31
Jira Board Style
.ghx-avatar .ghx-avatar-img {
width:42px;
height: 42px;
border-radius:2px;
}
.ghx-avatar {
position: absolute;
top: 5px;
right: 5px;
@jmwhittaker
jmwhittaker / dabblet.css
Created September 10, 2014 11:37
Untitled
[st-text] {
font-family: helveticaNeue, helvetica;
font-size:14px;
color:blue;
}
[st-text~="fixed"] { font-size:8px }
[st-text~="fixed:18"] { font-size:18px }
[st-text~="fixed:11"] { font-size:11px }
[st-text~="red"] { color:red }