Skip to content

Instantly share code, notes, and snippets.

View FifthSurprise's full-sized avatar

Kevin Chang FifthSurprise

View GitHub Profile
@FifthSurprise
FifthSurprise / gist:9413242
Created March 7, 2014 15:13
Euler3 and Euler4
def euler3
num=600851475143
n=num
if n % 2 ==0
lastFactor = 2
n = n/2
while n%2==0
n = n/2
end
else
@FifthSurprise
FifthSurprise / gist:9405443
Created March 7, 2014 04:53
Def initialize
<snippet>
<content><![CDATA[def initialize
$0
end]]></content>
<!-- Optional: File should go into: ~/Library/Application Support/Sublime Text 2/Packages/Ruby -->
<tabTrigger>defi</tabTrigger>
<scope>source.ruby</scope>
<description>def initialize .. end</description>
</snippet>
Name: Kevin Chang
Github: http://github.com/FifthSurprise
Blog: fifthsurprise.wordpress.com
Tagline: "Make nifty things"
Profile Picture: http://imgur.com/LlwHAbL
Treehouse Account: http://teamtreehouse.com/fifthsurprise
CoderWall Account: https://coderwall.com/fifthsurprise
CodeSchool Account: http://www.codeschool.com/users/fifthsurprise
Favorite Websites: