This file contains hidden or 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
function toSecs(val) { | |
val = val.split(':').reverse() | |
const sec = parseInt(val[0]) | |
const min = parseInt(val[1] || 0) | |
const hr = parseInt(val[2] || 0) | |
return ( (hr * 60 * 60) + (min * 60) + sec ) | |
} |
This file contains hidden or 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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' |
This file contains hidden or 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
$ codesign -d --entitlements :- /Applications/Window\ Tidy.app | |
Executable=/Applications/Window Tidy.app/Contents/MacOS/Window Tidy | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>com.apple.application-identifier</key> | |
<string>34U5SFK3WS.com.lightpillar.Window-Tidy</string> | |
<key>com.apple.developer.team-identifier</key> | |
<string>34U5SFK3WS</string> |
This file contains hidden or 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
import Ember from 'ember'; | |
import FactoryGuy from 'ember-data-factory-guy'; | |
import FactoryGuyTestHelper from 'ember-data-factory-guy/factory-guy-test-helper'; | |
import startApp from '../../helpers/start-app'; | |
import { module, test } from 'qunit'; | |
var App; | |
module('Acceptance: Registration New', { |
This file contains hidden or 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
app/views/admin/addresses/_address_form.html.erb:3: index = address_form_counter == 0 ? "INDEX" : address_form_counter | |
app/views/admin/channels/_email_form.html.erb:3: index = email_form_counter == 0 ? "INDEX" : email_form_counter | |
app/views/admin/channels/_fax_form.html.erb:3: index = fax_form_counter == 0 ? "INDEX" : fax_form_counter | |
app/views/admin/channels/_im_form.html.erb:3: index = im_form_counter == 0 ? "INDEX" : im_form_counter | |
app/views/admin/channels/_phone_form.html.erb:3: index = phone_form_counter == 0 ? "INDEX" : phone_form_counter | |
app/views/admin/channels/_website_form.html.erb:3: index = website_form_counter == 0 ? "INDEX" : website_form_counter | |
app/views/admin/codings/_coding_form.html.erb:3: index = coding_form_counter == 0 ? "INDEX" : coding_form_counter | |
app/views/admin/comments/_comment_form.html.erb:3: index = comment_form_counter == 0 ? "INDEX" : comment_form_counter | |
app/views/admin/gradings/_grading_form.html.erb:3: index = grading_form_counter == 0 ? "INDEX" : grading_form_cou |
This file contains hidden or 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
<%- | |
address = address_form | |
index = address_form_counter == 0 ? "INDEX" : address_form_counter | |
new_or_existing = address.new_record? ? 'new' : 'existing' | |
id_or_index = address.new_record? ? index : address.id | |
prefix = "#{parent}[#{new_or_existing}_address_attributes][]" | |
-%> | |
<div class="address"> | |
<% fields_for prefix, address do |address_form| -%> |
This file contains hidden or 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
RegistrationsController handling GET /events/1/registrations/new with an existing record should be successful | |
Failure/Error: @event.stub(:for_non_members?).and_return(true) | |
ArgumentError: | |
wrong number of arguments (1 for 0) |
This file contains hidden or 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
map.with_options :controller => "events" do |event| | |
event.connect "/events/index.html", :action => "index" | |
event.connect "/events/past_events", :action => "past_events" | |
event.connect "/events/past_events/:year", :action => "past_events" | |
event.connect "/events/past_events/:year/:id", :action => "show" | |
end |
This file contains hidden or 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
map.resources :products, :collection => { :notify => :post } do |products| | |
products.resources :orders, | |
:member => { | |
:change_payment => :get, | |
:invoice => :get, | |
:pricing => :get | |
}, | |
:collection => { | |
:pre => :any, | |
:new => :post |
NewerOlder