⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains 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
type route = | |
| Basic | |
| CssGrid | |
type state = { | |
route | |
}; | |
type action = | |
| UpdateRoute(route); |
This file contains 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
[user] | |
email = jose.a.diaz@aguaseca.com | |
name = Jose Diaz | |
[core] | |
autocrlf = true | |
longpaths = true | |
[color "branch"] | |
current = red bold | |
local = normal | |
remote = yellow bold |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am jadiaz on github. | |
* I am jadiaz (https://keybase.io/jadiaz) on keybase. | |
* I have a public key whose fingerprint is 4A6B 18AB F8DD 893C 4562 29E7 E76F 0944 3DDA FB2C | |
To claim this, I am signing this object: |
This file contains 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
// The module to bootstrap | |
var loadModule = "root/server"; | |
// Configuration object for Dojo Loader | |
dojoConfig = { | |
baseUrl: __dirname, | |
async: 1, | |
hasCache: { | |
"host-node": 1, // ensure we force the Loader into NodeJS mode | |
"dom": 0 // ensure none of the code assumes we have a dom |
This file contains 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
// load requirements for declarative widgets in page content | |
require([ | |
"dojo/on", | |
"dojo/dom", | |
/* basic dijit classes */ | |
"dijit/registry", | |
"dijit/Dialog", | |
"dijit/form/Button", | |
"dijit/form/DateTextBox", | |
"dijit/form/FilteringSelect", |
This file contains 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
class Management::ImagesController < ApplicationController | |
before_filter :authenticate_user! | |
def new | |
@vehicle = Vehicle.find(params[:id]) | |
@image = @vehicle.images.create!(params[:image]) | |
redirect_to @vehicle, :notice => "Image uploaded!" | |
end | |
end |