Skip to content

Instantly share code, notes, and snippets.

View jpsirois's full-sized avatar
🥷

Jean-Philippe Sirois jpsirois

🥷
View GitHub Profile
@mbostock
mbostock / .block
Last active February 26, 2019 22:38
Best-First Search
license: gpl-3.0
redirect: https://observablehq.com/@mbostock/best-first-search
@marcedwards
marcedwards / Vinyl vs CD vs digital audio
Last active June 28, 2019 10:45
Vinyl vs CD vs digital audio
# Vinyl vs CD vs digital audio
I thought I’d provide some feedback on this discusion.
At one point in my career, I thought I was going to be a music producer, and I’ve spent about 20 years writing, recording and producing music. Writing mostly electronic music played by DJs, and given the timeframe we’re talking about, I actually started mixing (as in the audio engineer definition) while vinyl accounted for close to 100% of sales, so everything we did ended up being mastered for vinyl.
As part of this process, we’d send every single release off to be mastered for vinyl, and receive an acetate (a one off copy), a test pressing (initial pressings using the vinyl master), or the final release pressing and be able to compare it to not only a 16bit/44.1khz master of the exact same recording, but we were also often able to compare directly to a 24bit/44.1khz master and 24bit/44.1khz pre-mastered version of the exact same song. And all typically on studio nearfield masters and really nice headphones.
Keep in mi
@mikaelbr
mikaelbr / destructuring.js
Last active February 20, 2025 13:00
Complete collection of JavaScript destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
@mbostock
mbostock / .block
Last active January 5, 2017 04:54
Multitouch Drag
license: gpl-3.0
@groveriffic
groveriffic / external_services_snippet_spec.rb
Created March 5, 2014 20:42
This automatically disables specs when the url is not specified via environment variable.
let(:ftp_url) {
if ENV['FTP_TEST_URL']
URI(ENV['FTP_TEST_URL'])
else
pending "Set ENV['FTP_TEST_URL'] to enable"
end
}
@thewellington
thewellington / crashplanFixup.sh
Last active October 27, 2018 06:11
Prevent CrashPlan from de-duplicating data on a Mac. Improves transfer speed! #mac #blog #crashplan
#!/bin/bash
#
# crashplanFixup.sh for Macintosh OS X 10.9 (and probably earlier versions)
#
# This script will prevent CrashPlan from de-duplicating data on files greater than 1k.
# Based on information from http://networkrockstar.ca/2013/09/speeding-up-crashplan-backups/
#
# NOTE: Must be run with sudo! IE: $ sudo sh ./crashplanFixup
#
# v1.1 2014-03-13 by [email protected]
@bomberstudios
bomberstudios / sketch-plugins.md
Last active February 26, 2024 07:02
A list of Sketch plugins hosted at GitHub, in no particular order.
@corny
corny / git.cap
Created November 14, 2013 01:31
Capistrano 3 with Git Submodules
# Save this file as lib/capistrano/tasks/git.cap
namespace :git do
desc 'Copy repo to releases'
task create_release: :'git:update' do
on roles(:all) do
with fetch(:git_environmental_variables) do
within repo_path do
execute :git, :clone, '-b', fetch(:branch), '--recursive', '.', release_path
end
@jbenet
jbenet / simple-git-branching-model.md
Last active May 3, 2025 18:07
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@EtienneLem
EtienneLem / 1 - one_for_all.js
Created September 3, 2013 19:03
$('a').one('click', callback) is executed at most once *per element*. $('a').one_for_all('click', callback) is executed at most once… *for all elements*.
// Works with Zepto/jQuery
$.fn.one_for_all = function(type, callback) {
var $all = $(this)
$all.on(type, function(e) {
$all.off(type)
callback(e)
})
}