Skip to content

Instantly share code, notes, and snippets.

@t3chnoboy
t3chnoboy / User.coffee
Last active December 28, 2015 14:09
sails generate model User name:string password:string email:email age:number --coffee
# User
#
# @module :: Model
# @description :: A short summary of how this model works and what it represents.
# @docs :: http://sailsjs.org/#!documentation/models
module.exports =
attributes: {
@t3chnoboy
t3chnoboy / Extract audio from mp4
Created November 10, 2013 10:05
Extract audio from mp4 using ffmpeg
ffmpeg video.mp4 -i -vn -c:a copy audio.m4a
@t3chnoboy
t3chnoboy / Brews
Created November 8, 2013 19:04
Homebrew packages
packages:
ack
apple-gcc42
atk
autoconf
autojump
automake
bash
#!/usr/bin/ruby
require "gnuplot"
require "integration"
def draw_plot
Gnuplot.open do |gp|
Gnuplot::Plot.new( gp ) do |plot|