Rails' Relationship with Javascript Through the Years
You'll use prototype and script.aculo.us and like it!
defmodule User do | |
schema "users" do | |
field :email, :string | |
# ... | |
many_to_many :companies, Company, join_through: "users_companies" | |
timestamps() | |
end | |
end |
scalar :time, description: "ISOz time" do | |
parse &Timex.parse(&1.value, "{ISO:Extended:Z}") | |
serialize &Timex.format!(&1, "{ISO:Extended:Z}") | |
end |
scalar :time, description: "ISOz time" do | |
parse &Timex.DateFormat.parse(&1.value, "{ISOz}") | |
serialize &Timex.DateFormat.format!(&1, "{ISOz}") | |
end |
use Mix.Config | |
# ... rest of config ... | |
config :comeonin, :bcrypt_log_rounds, 4 |
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "cmd+t cmd+t", | |
"command": "workbench.action.tasks.runTask", | |
"args": "Run All Tests" | |
}, | |
{ | |
"key": "f5", | |
"command": "workbench.action.tasks.runTask", |
defmodule MyApp.Repo.Migrations.AddTrackerIdToProperty do | |
use Ecto.Migration | |
def change do | |
alter table :properties do | |
add :tracker_id, :uuid, default: fragment("uuid_generate_v4()") | |
end | |
end | |
end |
#!/usr/bin/env bash | |
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ | |
### | |
# Label definitions | |
### | |
declare -A LABELS | |
# Platform |
oauth: | |
consumer_key: "your consumer key here" | |
consumer_secret: "your consumer secret here" | |
ssl: true |
.grid-1 { @include grid_12(1); } | |
.grid-2 { @include grid_12(2); } | |
.grid-3 { @include grid_12(3); } | |
.grid-4 { @include grid_12(4); } | |
.grid-5 { @include grid_12(5); } | |
.grid-6 { @include grid_12(6); } | |
.grid-7 { @include grid_12(7); } | |
.grid-8 { @include grid_12(8); } | |
.grid-9 { @include grid_12(9); } | |
.grid-10 { @include grid_12(10); } |