This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# dependencies: | |
# - ffmpeg (`brew install ffmpeg`) | |
puts "Usage: plopp DIR" and exit unless dir = ARGV[0] | |
Dir["#{dir}/*.mov"].each do |input| | |
output = File.basename(input, '.mov') | |
system "ffmpeg -i '#{input}' -map 0:0 -vn -acodec copy #{output}-1.m4a -map 0:1 -vn -acodec copy #{output}-2.m4a" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteBase / | |
# ensure the browser supports gzip encoding | |
RewriteCond %{HTTP:Accept-Encoding} \b(x-)?gzip\b | |
RewriteCond %{REQUEST_FILENAME}.gz -s | |
RewriteRule ^(.+) $1.gz [L] | |
# ensure correct Content-Type and add encoding header | |
<FilesMatch \.css\.gz$> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Address Book" | |
activate | |
set thePeople to selection | |
repeat with thePerson in thePeople | |
set note of thePerson to "" | |
end repeat | |
save | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# CHANGELOG generator | |
# | |
# Usage: | |
# | |
# $ changelog [SINCE UNTIL] | |
# | |
# This script collects git commits from a given range (SINCE and UNTIL | |
# are optional refs, SINCE defaults to the last tag, UNTIL to HEAD). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"coffeescript_error": { | |
"level": "error" | |
}, | |
"arrow_spacing": { | |
"name": "arrow_spacing", | |
"level": "ignore" | |
}, | |
"no_tabs": { | |
"name": "no_tabs", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@objects | |
form-row-* .form__row | |
label .form__row__label | |
input .form__row__input | |
= Form = | |
@on small | |
@forEach [form-row-*] as row | |
${row}.label: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var elm = require('gulp-elm'); | |
var plumber = require('gulp-plumber'); | |
var del = require('del'); | |
// builds elm files and static resources (i.e. html and css) from src to dist folder | |
var paths = { | |
dest: 'dist', | |
elm: 'src/*.elm', | |
staticAssets: 'src/*.{html,css}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- | |
This file is a reaction to the article "A small dive into, and rejection of, Elm": | |
https://hackernoon.com/a-small-dive-into-and-rejection-of-elm-8217fd5da235#.9w3ml4r6b | |
I think constructive criticism is very welcome in the Elm community. Pointing out | |
possibilities for documentation improvements, mentioning missing features or ways | |
in which the language could evolve etc. are imho a vital part of a good community. | |
However, the article above is neither well informed nor constructive. IMHO ranting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code for the chapter on creating an Identicon in | |
# "The Complete Elixir and Phoenix Bootcamp" on Udemy. | |
# see https://www.udemy.com/the-complete-elixir-and-phoenix-bootcamp-and-tutorial/ | |
defmodule Identicon do | |
defmodule Identicon.Image do | |
defstruct hex: nil, color: nil, grid: nil, pixel_map: nil | |
end | |
alias Identicon.{Image} |