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
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
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
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
<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
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'), |
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
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
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
/* 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. |
OlderNewer