This file contains hidden or 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
MICHAELs-MacBook-Pro:rails_projects mike$ pwd | |
#=> this is where I'm starting the example | |
/Users/mike/rails_projects | |
MICHAELs-MacBook-Pro:rails_projects mike$ touch example.txt | |
#=> I'm creating a blank text file called example.txt | |
MICHAELs-MacBook-Pro:rails_projects mike$ mkdir newfolder1 | |
#=> I'm creating a new directory called newfolder1 |
This file contains hidden or 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
module InWords | |
def in_words | |
return "n/a" if self > 999 | |
num = [] | |
h_num = self - (self%100) | |
t_num = self - h_num - (self%10) | |
o_num = self - h_num - t_num - (self%1) | |
h_words = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine"] | |
t_words = ["twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"] |
This file contains hidden or 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
rvm gemset empty | |
rvm gemset create mike_dev | |
rvm use 1.9.3@mike_dev | |
bundle install | |
(also had to run bundle update first on macbook, but not iMac. -- this was due to addressable-2.3.1 not being found.) |
This file contains hidden or 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
var int = self.setInterval(function(){clock()},1000); | |
function clock() | |
{ | |
var d = new Date(); | |
var t = d.toLocaleTimeString(); | |
document.getElementById("clock").value = t; | |
} |
NewerOlder