I hereby claim:
- I am sjmadsen on github.
- I am sjmadsen (https://keybase.io/sjmadsen) on keybase.
- I have a public key ASAM2zDP8I9g7MOZ7_GhBSjPfksLotaHWhJdI0N-_zPBogo
To claim this, I am signing this object:
class PrimeFactors | |
def self.of(n) | |
factors(n).compact.reject { |x| !is_prime?(x) } | |
end | |
def self.factors(n) | |
return [1] if n == 1 | |
(1..n / 2).map { |divisor| (n % divisor) == 0 ? divisor : nil } | |
end |
I hereby claim:
To claim this, I am signing this object:
# Xcode auto-versioning script for Git by Steve Madsen. | |
# Adapted from Subversion script by Axel Andersson. | |
# | |
# This is a Ruby script. Use /usr/bin/ruby as the shell. | |
build_counter_file = 'build-counter' | |
raise "#{$0}: Must be run from Xcode" unless ENV['BUILT_PRODUCTS_DIR'] | |
def development? |
==> Downloading http://downloads.sourceforge.net/project/id3lib/id3lib/3.8.3/id3lib-3.8.3.tar.gz | |
File already downloaded in /Volumes/User/Steve/Library/Caches/Homebrew | |
/usr/bin/tar xf /Volumes/User/Steve/Library/Caches/Homebrew/id3lib-3.8.3.tar.gz | |
==> Patching | |
/usr/bin/patch -f -p1 -i 001-homebrew.diff | |
patching file src/mp3_parse.cpp | |
==> ./configure --prefix=/usr/local/Cellar/id3lib/3.8.3 --disable-debug --disable-dependency-tracking | |
./configure --prefix=/usr/local/Cellar/id3lib/3.8.3 --disable-debug --disable-dependency-tracking | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes |
macpro:~ steve$ rvm --trace install 1.9.2-head | |
+ [[ -z '' ]] | |
+ export 'PS4=+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }' | |
+ PS4='+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }' | |
+[/Volumes/Users/steve/.rvm/scripts/cli] : 570 : __rvm_parse_args() $ [[ -z '' ]] | |
+[/Volumes/Users/steve/.rvm/scripts/cli] : 570 : __rvm_parse_args() $ [[ -n '' ]] | |
+[/Volumes/Users/steve/.rvm/scripts/cli] : 572 : __rvm_parse_args() $ [[ 0 -eq 1 ]] | |
+[/Volumes/Users/steve/.rvm/scripts/cli] : 572 : __rvm_parse_args() $ [[ -n '' ]] | |
+[/Volumes/Users/steve/.rvm/scripts/cli] : 15 : __rvm_parse_args() $ [[ -n install ]] | |
+[/Volumes/Users/steve/.rvm/scripts/cli] : 17 : __rvm_parse_args() $ rvm_token=install |