Skip to content

Instantly share code, notes, and snippets.

View alienresident's full-sized avatar

Mark Reilly alienresident

View GitHub Profile
@alienresident
alienresident / SassMeister-input.scss
Created July 25, 2013 19:17
Adding Ascii Art to minimized css files in sass
// ---
// Sass (v3.2.9)
// ---
/*!
111000000000000000000111
11000000000000000000000000000000011
100000000000000000000000000000000000000001
100000000000000100001111111000000000000000000001
@alienresident
alienresident / SassMeister-input.scss
Created October 24, 2013 18:33
Testing the new & features in sass 3.3.0.rc.1
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
@mixin specificity {
&#{&} {
@content;
}
}
@alienresident
alienresident / ui-ux-principles.md
Created October 25, 2013 15:42
Overview of the role of design within a project
@alienresident
alienresident / SassMeister-input.scss
Created November 8, 2013 15:34
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.4)
// Compass (v1.0.0.alpha.18)
// ----
// http://sassmeister.com/gist/7372729
@mixin specificity {
&#{&} {
@content;
@alienresident
alienresident / SassMeister-input.scss
Created November 14, 2013 03:48
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.4)
// Compass (v1.0.0.alpha.18)
// ----
// &#{&}
// http://sassmeister.com/gist/7461027
$primary: bada55;
@alienresident
alienresident / open-tabs.md
Last active June 22, 2016 20:28
Open Tabs September 17, 2014. Need to do a brain dump of links
@alienresident
alienresident / video-fix-videos-for-pseudo-streaming.md
Last active April 20, 2024 05:02
How to: Fix pseudo-streaming videos by moving Moov Atom
How to:

Fix pseudo-streaming videos by moving Moov Atom

Relies on some *nix CLI utilities: mediainfo; and qt-faststart (part of ffmpeg). I used homebrew to install them on OS X.

What is pseudo-streaming?

Pseudo streaming is simply a video that can start playing before it's fully dowmloaded. The videos are not streaming but rather progressively downloaded. What's important is that the file metadata (the Moov Atom) is at the start of the file rather than at the end. Usually this is an option set when encoding the file (called quick start or web start). If the files have not been encoded this way you can either re-encode or use a utility to move the Moov Atom. Re-encoding takes much longer than using a utility to move the Moov Atom so here's how to do it.

Steps

First check with mediainfo to see if video 'is streamable':

@alienresident
alienresident / svn-merging-branches.md
Last active August 29, 2015 13:56
How to: Merging SVN branches
How to:

Merging SVN branches

Helpful blog post on merging SVN branches

  • check which branch you're on:

    svn info   
@alienresident
alienresident / SassMeister-input.scss
Created February 18, 2014 19:43
Generated by SassMeister.com.
// ----
// Sass (v3.2.14)
// Compass (v0.12.2)
// ----
$bodyclass: 'imr';
// http://sassmeister.com/gist/9078434
// Two ways to pass a $bodyclass
@alienresident
alienresident / SassMeister-input.scss
Created February 21, 2014 20:20
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.4)
// Compass (v1.0.0.alpha.18)
// ----
@mixin font-face($font-family, $font-file-name: false, $weight: normal, $style: normal, $otf: false) {
@font-face {
$font: $font-family;
$ottf: ttf;
$ottf-format: truetype;