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
<header> | |
<h1> | |
NoMethodError | |
in Api::V1::CheckoutsController#create | |
</h1> | |
</header> | |
<div id="container"> | |
<h2>undefined method `checkout_url' for #<Api::V1::CheckoutsController:0x00000005ec52c0></h2> |
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
export default Ember.ObjectController.extend({ | |
actions: { | |
save: function() { | |
var _this = this; | |
console.log(this.get('content')); | |
this.get('content').save().then( | |
function(val) { | |
_this.transitionToRoute('books.book', _this.get('content')); | |
}, | |
function(err) {} |
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
timestamp1, data1, timestamp2, data2 | |
1, 324, 1.2, 102 | |
2, 231, 2.3, 429 | |
3, 432, 3.1, 300 |
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
require 'artemis' | |
require './components.rb' | |
class GameServer | |
def run | |
puts "Starting server..." | |
@world = Artemis::World.new | |
@world.add_manager Artemis::TagManager.new | |
@world.set_system(RouteMovementSystem.new).setup |
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
import os | |
import gi | |
try: | |
gi.require_version('Gst', '1.0') | |
except ValueError: | |
print 'Could not find required Gstreamer library' | |
sys.exit(1) | |
from gi.repository import GObject, Gst | |
os.environ["GST_DEBUG"] = "4" |
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
OurMemories.DatingTextField = Ember.TextField.extend({ | |
parsedDate: "", | |
input: function(evt) { | |
this.get('parentView').send('inputChanged', this.get('value')); | |
var parsedDate = Date.create(this.get('value')); | |
if (parsedDate != "Invalid Date") { | |
this.set('parsedDate', parsedDate); | |
console.log('I set it!'); |
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
class ImagesController < ApplicationController | |
respond_to :json | |
def create | |
@image = Image.new | |
@image.user_id = params[:user_id] | |
@image.upload = params[:upload] | |
@image.save! | |
puts @image.upload.url |
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
App.Store = DS.Store.extend({ | |
// Override the default adapter with the `DS.ActiveModelAdapter` which | |
// is built to work nicely with the ActiveModel::Serializers gem. | |
adapter: '_ams' | |
}); |
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
<?php | |
/* | |
Template Name: Front for LMCTV | |
*/ | |
global $meta; | |
$meta = get_post_custom(); // Custom fields | |
?> | |
<?php //get_header(); ?> |