Skip to content

Instantly share code, notes, and snippets.

View jgroeneveld's full-sized avatar

Jaap Groeneveld jgroeneveld

View GitHub Profile
@jgroeneveld
jgroeneveld / rails_angular_js.markdown
Last active August 29, 2015 14:02
Rails & AngularJS

This is a description on how to add AngularJS to a Rails App.

  • Put the angular javascript files into assets/javascripts/lib/angular-xxx

  • Add the libs to an index file (if you are not using anything else, application.js)

  • Add your apps dependencies to the same file

          # app/assets/javascripts/application.js.coffee
          #= require lib/angular-xxx/angular
          #= require lib/angular-xxx/angular-route
    

#= require app/main

- Read and understand Effective Go https://golang.org/doc/effective_go.html
code structure and look
=======================
- use rules from effective go
- always use gofmt/goimports to format code
- write code for the reader, a file should "tell a story"
- important and public code goes first

Keybase proof

I hereby claim:

  • I am jgroeneveld on github.
  • I am jgroeneveld (https://keybase.io/jgroeneveld) on keybase.
  • I have a public key whose fingerprint is 34F3 6BE2 AA7C DE7B CE9E 68E1 3BA5 C815 A1EA D4B4

To claim this, I am signing this object: