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
{ | |
id: "1908484a-fc1b-4c0b-ba79-ddeb83790637", | |
type: "record.update", | |
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe", | |
data: { | |
status: null, | |
version: 2, | |
id: "7553fd44-78bb-41eb-a453-8b301ae5e52e", | |
form_id: "295eda4a-7795-4881-9f62-085a930b356e", | |
project_id: null, |
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
{ | |
id: "1371c81d-367b-45d3-9f7c-91da5de9518e", | |
type: "record.delete", | |
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe", | |
data: { | |
status: null, | |
version: 3, | |
id: "7553fd44-78bb-41eb-a453-8b301ae5e52e", | |
form_id: "295eda4a-7795-4881-9f62-085a930b356e", | |
project_id: null, |
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
{ | |
id: "8faf0917-1987-4ac6-bcc7-4fbf71d191f3", | |
type: "record.create", | |
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe", | |
data: { | |
status: null, | |
version: 1, | |
id: "7553fd44-78bb-41eb-a453-8b301ae5e52e", | |
form_id: "295eda4a-7795-4881-9f62-085a930b356e", | |
project_id: null, |
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
{ | |
id: "f4ef6656-172c-4c09-9808-f07e03357519", | |
type: "form.create", | |
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe", | |
data: { | |
name: "Intersections", | |
description: "Intersection in Colorado Springs", | |
bounding_box: null, | |
record_title_key: "94f8", | |
status_field: { }, |
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 plugins (only those I whitelist) | |
Pry.config.should_load_plugins = false | |
# Launch Pry with access to the entire Rails stack. | |
# If you have Pry in your Gemfile, you can pass: ./script/console --irb=pry instead. | |
# If you don't, you can load it through the lines below :) | |
rails = File.join Dir.getwd, 'config', 'environment.rb' | |
if File.exist?(rails) && ENV['SKIP_RAILS'].nil? | |
require rails |
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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Automatically strip trailing whitespace from lines within files | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
autocmd BufWinEnter,BufRead,InsertLeave,BufEnter * call RemoveTrailingWhitespace() | |
function! RemoveTrailingWhitespace() | |
silent! execute '%s/\s\+$//g' | |
endfunction |
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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"Highlight whitespace at the end of lines | |
" From: http://vim.wikia.com/wiki/Highlight_unwanted_spaces | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
highlight ExtraWhitespace ctermbg=red guibg=red | |
match ExtraWhitespace /\s\+$/ | |
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ | |
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ | |
autocmd InsertLeave * match ExtraWhitespace /\s\+$/ |
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
(1..100).each do |n| | |
o = "" | |
o << "Fizz" if (n % 3) == 0 | |
o << "Buzz" if (n % 5) == 0 | |
puts "#{o.empty? ? n : o}" | |
end |
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
{ | |
"project": { | |
"name": "Denver", | |
"description": "Data collected that is in the Denver, CO area.", | |
"id": "3bc943c3-6477-4010-a876-8e5fce61fdf1", | |
"created_at": "2014-05-07T19:17:42Z", | |
"updated_at": "2014-05-07T19:17:42Z" | |
} | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>HamlPlayground</title> | |
<link rel="stylesheet" media="all" href="/assets/scaffolds-07f6f551a374e3569370d2d26dba981d.css?body=1" data-turbolinks-track="true" /> | |
<link rel="stylesheet" media="all" href="/assets/testers-069e88c06b889877799890854d7f4c40.css?body=1" data-turbolinks-track="true" /> | |
<link rel="stylesheet" media="all" href="/assets/application-a6772d2c79915825e0baf618a303d51b.css?body=1" data-turbolinks-track="true" /> | |
<script src="/assets/jquery-eb3e278249152b5b5d5170b73d9dbf52.js?body=1" data-turbolinks-track="true"></script> | |
<script src="/assets/jquery_ujs-0b8f09cf5aec4ba1be1abd9f915c77e2.js?body=1" data-turbolinks-track="true"></script> | |
<script src="/assets/turbolinks-924184401b7d116eadaaefc96895fa84.js?body=1" data-turbolinks-track="true"></script> |