Rails' Relationship with Javascript Through the Years
You'll use prototype and script.aculo.us and like it!
| function minutes_since_last_commit { | |
| now=`date +%s` | |
| last_commit=`git log --pretty=format:'%at' -1` | |
| seconds_since_last_commit=$((now-last_commit)) | |
| minutes_since_last_commit=$((seconds_since_last_commit/60)) | |
| echo $minutes_since_last_commit | |
| } | |
| function has_modified_files { | |
| status=`git status` |
| function minutes_since_last_commit { | |
| now=`date +%s` | |
| last_commit=`git log --pretty=format:'%at' -1` | |
| seconds_since_last_commit=$((now-last_commit)) | |
| minutes_since_last_commit=$((seconds_since_last_commit/60)) | |
| echo $minutes_since_last_commit | |
| } | |
| function has_modified_files { | |
| status=`git status` |
| .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); } |
| oauth: | |
| consumer_key: "your consumer key here" | |
| consumer_secret: "your consumer secret here" | |
| ssl: true |
| #!/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 |
| 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 |
| // 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", |
| use Mix.Config | |
| # ... rest of config ... | |
| config :comeonin, :bcrypt_log_rounds, 4 |
| scalar :time, description: "ISOz time" do | |
| parse &Timex.DateFormat.parse(&1.value, "{ISOz}") | |
| serialize &Timex.DateFormat.format!(&1, "{ISOz}") | |
| end |