Skip to content

Instantly share code, notes, and snippets.

View charliegerard's full-sized avatar
💭
Making something 🧪

Charlie charliegerard

💭
Making something 🧪
View GitHub Profile

###Licensing

morning exercise: https://gist.github.com/wofockham/0794e05bb675da923c13

Richard Stallman Eric Raymond - The cathedral and the bazaar book

GPL: General Public License - you can do anything but if you distribute it you have to distribute it on the same terms as the owner did. Sub cat : LGPL version 2 and 3.

#Day33

Morning exercise: https://gist.github.com/mathildathompson/9944082

Metaprogramming Writes methods for you insidea method

Calling debugger pauses the program so we can call functions and check where the errors are.

If we don't want to pause the program to debug, we can define a function inside the function we want to check.

#Day38

####Recreate the todo app with Ajax.

  • Create a rails app
  • Update the gem file
  • Bundle
  • Go to the app>assets>javascript>application file and add "//= require underscore" before require tree to require the underscore file.
  • Change routes.
  • rails g migration "create_tasks description:text complete:boolean"

In terminal when pulling or pushing changes, if we end up on the weird blue screen full of ,,,,, press :wq

If merge conflict, remove or comment out the changes we don't want and push again. A merge conflict will happen if someone and me change the same line.

before running git pull, always do git add and git commit.

always run git push Kriss master if I want to push my changes to Kriss's repo.

The database is shared accross all branches so if I make a change in the database, people need to run rake db:migrate to migrate my changes.