- Download this application skeleton.
- Convert the app to use AJAX.
- Add any files you changed to your gist and submit your code.
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
| heroku create | |
| Creates a new sub domain. | |
| git push heroku master | |
| Deploys | |
| heroku rename NEW NAME | |
| Renames app. |
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
| git config --global user.name "Your Name" | |
| Sets the global username. | |
| git config --global user.email [email protected] | |
| Sets the global email. | |
| git config --global alias.co checkout | |
| Creates an alias for checkout, now I just need to type co. | |
| git config --global core.editor "subl -w" |
- Download this application skeleton.
- Convert the app to use AJAX.
- Add any files you changed to your gist and submit your code.
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
| Format: | |
| $(document).ready(function() { | |
| $(thingToClick).event(function() { | |
| $(thingToAffect).effect(); | |
| }); | |
| }); | |
| $(document).ready(function() { | |
| $('button').click(function() { |
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
| *Objects have their own behavior. | |
| *Objects interact with each other via methods. | |
| *Objects should know as little about each other as possible. | |
| *Create objects with room for change. | |
| *You can not fully design software before writing it. | |
| Designing classes with a single responsibilty. | |
| *Classes should have a single responsibilty. | |
| *Nouns make good classes. | |
| *Try to descibe a class in one sentence, without using and. |
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
| die_array= [["A", "A", "E", "E", "G", "N"], | |
| ["E", "L", "R", "T", "T", "Y"], | |
| ["A", "O", "O", "T", "T", "W"], | |
| ["A", "B", "B", "J", "O", "O"], | |
| ["E", "H", "R", "T", "V", "W"], | |
| ["C", "I", "M", "O", "T", "U"], | |
| ["D", "I", "S", "T", "T", "Y"], | |
| ["E", "I", "O", "S", "S", "T"], | |
| ["D", "E", "L", "R", "V", "Y"], | |
| ["A", "C", "H", "O", "P", "S"], |
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
| date= Time.now.strftime("%m/%d/%y") | |
| puts "Please enter your journal entry for #{date}" | |
| entry_body = gets.chomp! | |
| filename = "Journal_#{Time.now.strftime("%m/%d/%y")}" | |
| jounral_entry = File.new("#{filename}.txt", "w+") | |
| journal_entry puts entry_body |
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
| movies = { gone_with_the_wind: 3, the_lion_king: 4, the_matrix: 4 } | |
| puts "What would you like to do?" | |
| puts "--Type 'add' to add a movie." | |
| puts "--Type 'update' to update a movie." | |
| puts "--Type 'display' to display a move." | |
| puts "--Type 'delete' to delete a movie." | |
| choice = gets.chomp.downcase | |
| case choice |
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
| def separate_comma(number) | |
| if number < 1000 | |
| puts "silly" | |
| end | |
| snumb = number.to_s | |
| array = snumb.split('') | |
| cstr = '' | |
| counter = 0 |
NewerOlder