Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jadiaz's full-sized avatar

Jose Antonio Diaz jadiaz

View GitHub Profile
@jadiaz
jadiaz / App.re
Created October 16, 2018 02:34
Reason Router
type route =
| Basic
| CssGrid
type state = {
route
};
type action =
| UpdateRoute(route);
@jadiaz
jadiaz / .gitconfig
Created September 13, 2018 18:00
Global git configuration
[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
### 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:
@jadiaz
jadiaz / app.js
Created November 7, 2013 18:26
Using cujojs with dojo and nodejs on the server side to verify Persona assertion
// 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
@jadiaz
jadiaz / gist:3908537
Created October 17, 2012 21:55 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@jadiaz
jadiaz / application.js
Created June 6, 2012 20:24
Dojo javascript
// 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",
@jadiaz
jadiaz / gist:932352
Created April 20, 2011 19:06
images controller
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