Skip to content

Instantly share code, notes, and snippets.

View cyrusstoller's full-sized avatar
🏠
Working from home

Cyrus Stoller cyrusstoller

🏠
Working from home
View GitHub Profile
$cache = []
def fib(n)
return $cache[n] unless $cache[n].nil?
return 1 if n == 0
res = n * fib(n-1)
$cache << res
return $cache[n-1]
end
# Code to solve the circle hackathon invite challenge http://discovercircle.com/hackathon
def main
# seven digit number where number is ABCDEFG
# A*B*C = C*D*E = E*F*G
# A,B,C,D,E,F,G can't be 0
# can't use 5 or 7 since they're prime
possible_digits = [1,2,3,4,6,8,9]
prime_factorization = [[1],[2],[3],[2,2],[2,3],[2,2,2],[3,3]]
export PATH=/usr/local/bin:/usr/local/cuda/bin:$PATH
export DYLD_LIBRARY_PATH=/usr/local/bin:/usr/local/cuda/lib:$DYLD_LIBRARY_PATH
export PATH=/usr/local/mysql/bin:$PATH
export PATH=$HOME/Library/julia:$PATH
export EDITOR='mate -w'
# alias gcc='gcc-mp-4.4'
@cyrusstoller
cyrusstoller / gist:9887884
Last active August 29, 2015 13:57
Covered CA Error Messages

javax.xml.ws.soap.SOAPFaultException: oracle.iam.identity.exception.ValidationFailedException: IAM-3050007:The user with the attribute User Login and value [REDACTED] already exists.:User Login:[REDACTED]

*.ics
.DS_Store