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
chris@christopher-macgowns-macbook-pro:~ $ ls -alh ~/Music/iTunes/iTunes\ Music/Iio/Rapture/Rapture\ \(Armin\ van\ Buuren\ Remix\).mp3 | |
-rw-r--r-- 1 chris staff 12M Feb 1 2010 /Users/chris/Music/iTunes/iTunes Music/Iio/Rapture/Rapture (Armin van Buuren Remix).mp3 | |
>> audio_file = "/Users/chris/Music/iTunes/iTunes Music/Iio/Rapture/Rapture (Armin van Buuren Remix).mp3" | |
>> (bytes = IO.read(audio_file).unpack("s*")) and nil | |
>> puts bytes.length | |
>> t = Time.now().utc | |
>> puts bytes.each_slice(2).to_a.transpose.length | |
>> puts Time.now().utc - t | |
4.148601 |
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
Index: numpy/distutils/fcompiler/gnu.py | |
=================================================================== | |
--- numpy/distutils/fcompiler/gnu.py (revision 8716) | |
+++ numpy/distutils/fcompiler/gnu.py (working copy) | |
@@ -254,7 +254,7 @@ | |
if not sys.platform == 'darwin': | |
return [] | |
arch_flags = [] | |
- for arch in ["ppc", "i686", "x86_64", "ppc64"]: | |
+ for arch in ["ppc", "i686", "x86_64"]: |
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
require 'formula' | |
class Virtualenvwrapper <Formula | |
url 'http://www.doughellmann.com/downloads/virtualenvwrapper-2.1.1.tar.gz' | |
homepage 'http://www.doughellmann.com/projects/virtualenvwrapper/' | |
md5 '1c6543b1dc69574aa8fe973b07f3ec16' | |
def install | |
libexec.install ['virtualenvwrapper.sh', 'virtualenvwrapper'] | |
# HACK: Make the wrapper exectuable, so `which` can find it. |
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
require 'formula' | |
<<-COMMENTS | |
This is the Homebrew formula for Python. | |
Versions | |
-------- | |
This formula is currently tracking version 2.6.x. |
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
public abstract class AbstractJMClassFactory | |
{ | |
public abstract AbstractJMClass CreateHappyJM(); | |
public abstract AbstractJMClass CreateAngryJM(); | |
public abstract AbstractJMClass CreateHungryJM(); | |
} | |
public class ConcreteJMClassFactory: AbstractJMClassFactory { | |
public override AbstractJMClass CreateHappyJM() | |
{ |
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
map <C-e>r :set filetype=ruby<CR> | |
au Filetype ruby imap <C-c>c <Esc>b~i<C-o>diwclass <C-r>"<CR><CR>end<Esc><up>i | |
au Filetype ruby imap <C-c>m <Esc>b~i<C-o>diwmodule <C-r>"<CR><CR>end<Esc><up>i | |
au Filetype ruby imap <C-c>d <C-o>diw<C-i>def <C-r>"( <Esc>ma<Esc>i)<CR><CR>end<Esc>`ai | |
au Filetype ruby imap <C-c>i <Esc>$a if | |
au Filetype ruby imap <C-c>u <Esc>$a unless | |
au Filetype ruby imap <C-c>b <Esc>$a { \| <Esc>ma<Esc>i\| }<Esc>`ai | |
au Filetype ruby imap <C-c>if if <Esc>ma<Esc>i<CR><CR><Esc>Diend<Esc>`aa |
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
class Fun; end | |
class UnFun | |
def initialize(*args) | |
funs = [] | |
ObjectSpace.each_object(Fun) { |fun| funs << fun } | |
funs[rand(funs.length)].destroy | |
end | |
end |
NewerOlder