Skip to content

Instantly share code, notes, and snippets.

@liamcurry
liamcurry / gist:2597326
Created May 4, 2012 19:56
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@liamcurry
liamcurry / html5video.sh
Created May 14, 2012 20:24 — forked from markupboy/html5video.sh
automated conversion of a file to all three html5 compatible video formats - h.264, ogg, and webm
#!/bin/sh
# Output file for HTML5 video
# requirements: ffmpeg .6+
# usage: ./html5video.sh infile.mp4 640x360
target_directory='converted'
file=`basename $1`
filename=${file%.*}
filepath=`dirname $1`
@liamcurry
liamcurry / FFMpeg - FLAC to Ogg
Created September 18, 2011 17:22
Converting FLAC to various formats
ffmpeg -i hlah_3.flac -strict experimental -acodec vorbis -aq 100 hlah.ogg
(module
(type $FUNCSIG$vj (func (param i64)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$ijjjii (func (param i64 i64 i64 i32 i32) (result i32)))
(type $FUNCSIG$ijjii (func (param i64 i64 i32 i32) (result i32)))
(type $FUNCSIG$ijji (func (param i64 i64 i32) (result i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(import "env" "assert" (func $assert (param i32 i32)))
(import "env" "load_i64" (func $load_i64 (param i64 i64 i64 i32 i32) (result i32)))
(import "env" "read_message" (func $read_message (param i32 i32) (result i32)))
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<h1>Hello World!</h1>
document.body.addEventListener('click', function(e) {
var el = e.target;
if (el.matches('.traffic.widget .tabs__tab')) {
console.log('match');
}
});
var _user$project$Native_Thing = function() {
function toHtml(model, factList) {
function render(e) {
console.log('render', e);
var domNode = document.createElement('div');
return domNode;
}
var _bitrage_io$bitrage_io$Native_Page_Chart = function() {
var d3 = require('d3');
function toHtml(model, factList) {
return _elm_lang$virtual_dom$Native_VirtualDom.custom(
factList,
model,
impl(model)
);
{
"use": [
"postcss-url",
"cssnano"
],
"cssnano": {
"autoprefixer": false
},
"postcss-url": {
"url": "inline"