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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
customerSessionId: 23, // todo Should be unique for each user session | |
possible: function(location) { | |
$.get('http://dev.api.ean.com/ean-services/rs/hotel/v3/list', { | |
apiKey: 'mc7re8wzh2vnnw67uz4je6qq', | |
cid: 55505, | |
_type: 'json', |
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 Ember from 'ember'; | |
export default Ember.ObjectController.extend({ | |
actions: { | |
save: function() { | |
var _this = this; | |
var record = this.store.createRecord('character', this.get('model')); | |
record.save(); |
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
/* global require, module */ | |
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
var pickFiles = require('broccoli-static-compiler'); | |
var app = new EmberApp(); | |
// Use `app.import` to add additional libraries to the generated | |
// output files. | |
// |
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
/* GStreamer | |
* | |
* unit test for intervideosrc | |
* | |
* Copyright (C) <2014> Louis Simons <lousimons at gmail dot com> | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Library General Public | |
* License as published by the Free Software Foundation; either | |
* version 2 of the License, or (at your option) any later version. |
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 numpy as np | |
import pandas | |
import xml.etree.ElementTree as ET | |
def get_component_field(comp_el, field_name, default=None): | |
field_el = comp_el.find("./fields/field[@name='{0}']".format(field_name)) | |
if field_el is not None: | |
return field_el.text | |
else: |
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
include $(top_srcdir)/common/check.mak | |
CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg | |
TEST_FILES_DIRECTORY = $(top_srcdir)/tests/files | |
GST_TOOLS_DIR = $(top_builddir)/tools | |
REGISTRY_ENVIRONMENT = \ | |
GST_REGISTRY_1_0=$(CHECK_REGISTRY) |
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
#ifdef HAVE_CONFIG_H | |
#include "config.h" | |
#endif | |
#include <gst/gst.h> | |
#include <stdlib.h> | |
#include <glib/gprintf.h> // Needed because of bug in glib includes? | |
#include <string.h> |
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
var attr = DS.attr; | |
var belongsTo = DS.belongsTo; | |
App.Checkout = DS.Model.extend({ | |
book: belongsTo('book'), | |
patron: belongsTo('patron'), | |
status: attr(), | |
closed_at: attr('date'), | |
created_at: attr('date'), |