130 bytes, that's what it takes.
"header footer section aside nav article figure figcaption hgroup time main".replace(/\w+/g,function(a){document.createElement(a)})
define homebrew::tap ( | |
$ensure = present, | |
) { | |
if $ensure == 'present' { | |
exec { "homebrew_tap_${name}": | |
command => "brew tap ${name}", | |
unless => "brew tap | grep ${name}", | |
} | |
} else { | |
exec { "homebrew_untap_${name}": |
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80 | |
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 48 | |
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 40 | |
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 48 | |
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 53 | |
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 48 | |
defaults write com.apple.BluetoothAudioAgent "Stream - Flush Ring on Packet Drop (editable)" 30 | |
defaults write com.apple.BluetoothAudioAgent "Stream - Max Outstanding Packets (editable)" 15 | |
defaults write com.apple.BluetoothAudioAgent "Stream Resume Delay" "0.75" |
#!/usr/bin/env ruby | |
# usage: stripiT.rb file1.m4a file2.m4a file3.m4a | |
# automatically outputs to file1 - stripped.m4a, file2 - stripped.m4a, and so on. | |
# Script to remove extraneous/unwanted atoms from iTunes purchased files by way of AtomicParsley. | |
# Output should be comparable to the atoms left over after reencoding the file in iTunes itself. | |
# I only care about songs, so I have no clue how well this applies to video files | |
# Some information taken from: https://code.google.com/p/mp4v2/wiki/iTunesMetadata |
// Original method | |
var object = { | |
method: function (x, y) { | |
return x+y; | |
} | |
} | |
// Add operations before or after! | |
object.method = (function (original) { | |
return function (x, y) { |
The reflow appens as many times as there are frames per seconds. It recalculate all positions that change in order to diplay them. Basically, when you scroll you execute a function where you move things between two reflows. But there are functions that triggers reflows such as jQuery offset, scroll... So there are two things to take care about when you dynamically change objects in javascript to avoid too many reflows:
This gist demonstrates how to use Compass magic sprites in combination with HiDPI.
Credits: Images ©BBC News.
%myclass | |
color: blue | |
@media (min-width: 600px) | |
background: red | |
@media (min-width: 800px) | |
font-size: 28px | |
.class1 | |
@media (min-width: 600px) | |
@extend %myclass |
@function icon-url($path) { | |
@return url("../../assets/icons/#{$path}"); | |
} | |
@function bg-url($path) { | |
@return url("../../assets/bg/#{$path}"); | |
} | |
@function asset-url($path) { | |
@return url("../../assets/#{$path}"); |
@function rgbaa($args...) { | |
// rgbaa(#FFF, .5) | |
@if length($args) == 2 { | |
$hex: nth($args, 1); | |
$alpha: nth($args, 2); | |
@if $oldIE == 1 { | |
@return rgb(red($hex), green($hex), blue($hex)); | |
} @else { | |
@return rgba(red($hex), green($hex), blue($hex), $alpha); |