Skip to content

Instantly share code, notes, and snippets.

@kylophone
kylophone / loudness.rb
Last active April 24, 2024 20:50
FFmpeg loudnorm filter - dual pass loudness normalization example - http://k.ylo.ph/2016/04/04/loudnorm.html
#!/usr/bin/env ruby
require 'open3'
require 'json'
ffmpeg_bin = '/usr/local/bin/ffmpeg'
target_il = -24.0
target_lra = +11.0
target_tp = -2.0
samplerate = '48k'
@sgmurphy
sgmurphy / podcast-ratings.php
Created February 21, 2012 19:31
Scrape ratings from iTunes store
<?php
/**
* Scrape the number of podcast reviews from iTunes for all country specific storefronts.
*
* @author Sean Murphy <sean@iamseanmurphy.com>
*/
$podcast_id = '366931951'; // Startups For the Rest of Us
//$podcast_id = '318567721'; // techzing
@brajeshwar
brajeshwar / responsive-boobs.css
Created December 29, 2011 14:35
Boob size response accordingly when viewed on different resolutions.
// Smartphones
@media (max-width: 480px) {
boob-size: 32;
boob-cup: A;
}
// Tablets and bigger landscape phones
@media (min-width: 480px) and (max-width: 768px) {
boob-size: 34;
boob-cup: B;