Skip to content

Instantly share code, notes, and snippets.

View raytiley's full-sized avatar

Ray Tiley raytiley

View GitHub Profile
@raytiley
raytiley / sweet-app.js
Created August 19, 2015 19:58
Fastest JS app ever
;
{{#collection Ember.ListView contentBinding="controller" height="700" rowHeight="35"}}
{{schedule-item run=this}}
{{/collection}}
@raytiley
raytiley / index.js
Created December 3, 2014 23:48
Do some watching test
var fs = require('fs');
fs.watch('watch-me', function (event, filename) {
console.log('event is: ' + event);
if (filename) {
console.log('filename provided: ' + filename);
} else {
console.log('filename not provided');
}
});
@raytiley
raytiley / backtrace.txt
Created May 7, 2014 14:53
VLC 2.2 Crash when converting MPEG2 to h264
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2004.0xc70]
0x75e079c8 in msvcrt!memcmp () from C:\Windows\syswow64\msvcrt.dll
(gdb) bt
#0 0x75e079c8 in msvcrt!memcmp () from C:\Windows\syswow64\msvcrt.dll
#1 0x6cb5965c in x264_cqm_init (h=h@entry=0x4854010) at common/set.c:95
#2 0x6cad3d66 in x264_encoder_open_128 (param=param@entry=0x49be624)
at encoder/encoder.c:1154
#3 0x6cac2cfc in Open (p_this=0x49f6cb4)
at ../../extras/package/win32/../../../modules/codec/x264.c:1401
@raytiley
raytiley / auth.js
Last active August 29, 2015 13:56
A controller using SimpleLogin from Firebase. Returns promises from login / logout to make working with Ember Routing simple.
var dbRef = new Firebase("https://YOUR-FIREBASE.firebaseio.com/");
export default Ember.Controller.extend({
/**
@property currentUser
@type {User}
@default null
*/
currentUser: null,

#Lurker to Commiter

Ember is an extremely fast moving framework with lots going on. With all the activity in can be hard to know how to jump in and help. In this session we'll cover how to get up to speed with the Ember development practices, ways to ease the learning curve of working on Ember.js internals, and what areas the Ember core team are looking for help in.

Right now the proposal is to define the names of the query params in one spot on the controller like this:

App.IndexController = Ember.ArrayController.extend({
  queryParams: ['search', 'sort']
  search: null,
  sort: null
});
test("Issue 4201", function() {
expect(1);
Router.map(function() {
this.resource('lobby', function() {
this.route('index', {
path: ':lobby_id'
});
this.route('list');
});
});
@raytiley
raytiley / gist:8340706
Created January 9, 2014 19:48
An example of subexpressions in handlebars
{{#if (equal 'test' (to-lower value))}}
<!-- value.toLowerCase() ==== 'test' -->
{{else}}
{{/if}}
<?php
echo "Create a show";
//Configure Script
date_default_timezone_set('America/New_York'); // Set this to timezone of Cablecast Server
$server = "http://demo.trms.com/"; //include trailing backslash
//End Configure
$server = $server."CablecastWS/CablecastWS.asmx?WSDL";