Skip to content

Instantly share code, notes, and snippets.

View davetheninja's full-sized avatar

Dave the Ninja davetheninja

  • me, myself and I
  • Hong Kong
View GitHub Profile
@davetheninja
davetheninja / scheduled_courses_controller.rb
Created November 6, 2012 12:02
Managing Value Object and non standard JSON input
class Api::ScheduledCoursesController < Api::BaseController
def create
@scheduled_course = ScheduledCourse.create!({
course: get_course,
location: build_location
})
render :create, status: :created
end
function a() { // index 1, or first function in file
}
function b() { // index 2, or second function in file
}
function c() { // index 3, or third function in file
% ember serve
version: 0.1.0
Livereload server on port 35729
Serving on http://0.0.0.0:4200
EEXIST, file already exists '/Users/davetheninja/Projects/bootcamp/bootcamp-client/tmp/coffee_script_filter-tmp_dest_dir-eHwB8mv6.tmp/bootcamp-client/router.js'
Error: EEXIST, file already exists '/Users/davetheninja/Projects/bootcamp/bootcamp-client/tmp/coffee_script_filter-tmp_dest_dir-eHwB8mv6.tmp/bootcamp-client/router.js'
at Object.fs.openSync (fs.js:438:18)
at Object.fs.writeFileSync (fs.js:977:15)
at Object.copyPreserveSync (/Users/davetheninja/Projects/bootcamp/bootcamp-client/node_modules/ember-cli-coffeescript/node_modules/broccoli-coffee/node_modules/broccoli-filter/node_modules/broccoli-kitchen-sink-helpers/index.js:150:8)
at /Users/davetheninja/Projects/bootcamp/bootcamp-client/node_modules/ember-cli-coffeescript/node_modules/broccoli-coffee/node_modules/broccoli-filter/index.js:42:19
@davetheninja
davetheninja / Zee mocked post request body
Created October 13, 2014 16:44
Daddy needs a tissue for these issues....
"{"presentation":{"title":""}}"