- Beware of the compressor, a double-edged sword. Only use it with discretion, and don't follow the parameters or indications, use your ears and believe in what they tell you. Don't use it to try and tame pops and rumbles anyway, its real goal is to reduce the discrepancy between the low levels and the high levels of your recording.
- Use the high-pass (sometimes called low-cut) of your mic, it will remove the pops and rumbles better than any other tool.
- If your mic doesn't have a high-pass, or if it sounds harsh, do it yourself with an EQ in Garageband or whatever you're using. Use a 45° slope that cuts under 80HZ (on average).
- Position of the mic: avoid direct voice impulse towards the capsule, find an angle that allows your voice to 'roll over' it but without inducing any 'hollow' feeling.
- If your 's' are a bit harsh, a first step is generally to try and make a concave shape around 7KHZ, but be careful because it can make the voice sound dull if you dig too much or too broadly there.
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
def filter(hsh, *keys) | |
hsh.reject { |k, _| keys.include? k } | |
end | |
# Usage | |
histogram = { | |
monday: 5, | |
tuesday: 7, | |
wednesday: 10, | |
thursday: 18, |
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
def deep_merge(h1, h2) | |
h1.merge(h2) { |key, h1_elem, h2_elem| deep_merge(h1_elem, h2_elem) } | |
end | |
# Usage | |
wish_list = { | |
8 => { | |
title: "The Color of Magic", | |
}, | |
42 => { |
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
scores = { | |
'The Lady' => 3, | |
'Fate' => 2, | |
'Death' => 10 | |
} | |
# Usage | |
leaderboard = scores.sort_by { |_, score| -score } |
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
entries = { | |
1372284000 => "CVE-2013-4073", | |
1368482400 => "CVE-2013-2065" | |
} | |
updated_entries = { | |
1385074800 => "CVE-2013-4164", | |
1372284000 => "CVE-2013-4073", | |
1368482400 => "CVE-2013-2065" | |
} |
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
alias ap='ayadn -P' #post | |
alias aw='ayadn -W' #write | |
alias ar='ayadn -R' #reply | |
alias atl='ayadn -tl' #timeline | |
alias ats='ayadn -tl -s' #scroll timeline | |
alias ati='ayadn -tl -i' #indexed timeline | |
alias ags='ayadn -gl -s' #scroll global | |
alias ame='ayadn -m me' #mentions of me | |
alias am='ayadn -m' #mentions of... | |
alias apm='ayadn pm' #send pm to... |
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
[{u'rating': 9.2, u'tconst': u'tt0068646', u'title': u'The Godfather', u'image': {u'url': u'http://ia.media-imdb.com/images/M/MV5BMjEyMjcyNDI4MF5BMl5BanBnXkFtZTcwMDA5Mzg3OA@@._V1_.jpg', u'width': 333, u'height': 500}, u'num_votes': 851932, u'year': | |
u'1972', u'can_rate': True, u'type': u'feature'}, {u'rating': 9.3, u'tconst':u'tt0111161', u'title': u'The Shawshank Redemption', u'image': {u'url': u'http://ia.media-imdb.com/images/M/MV5BODU4MjU4NjIwNl5BMl5BanBnXkFtZTgwMDU2MjEyMDE@._V1_.jpg', u'width': 933, u'height': 1388}, u'num_votes': 1231984, u'year': u'1994', u'can_rate': True, u'type': u'feature'}] |
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
dictSwitch = { | |
humain : saluer, | |
chien : caresser, | |
lapin : manger, | |
poney : monter, | |
} | |
# Supposons qu'on ait une variable intitulée "raceEtreVivant", qui vaut : humain, chien, ... ou n'importe quoi d'autre. | |
# On récupère l'action à faire. Si aucune action de prévue, on récupère la fonction par défaut : regarder. | |
actionAFaire = dictSwitch.get(raceEtreVivant, regarder) |
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 | |
require "openssl" | |
class BF < Struct.new(:key, :pad_with_spaces) | |
def encrypt(str) | |
cipher = OpenSSL::Cipher.new('bf-ecb').encrypt | |
if pad_with_spaces | |
str += " " until str.bytesize % 8 == 0 | |
cipher.padding = 0 |