Skip to content

Instantly share code, notes, and snippets.

View raytiley's full-sized avatar

Ray Tiley raytiley

View GitHub Profile

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
});

#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.

@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,
@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 / 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');
}
});
{{#collection Ember.ListView contentBinding="controller" height="700" rowHeight="35"}}
{{schedule-item run=this}}
{{/collection}}
@raytiley
raytiley / sweet-app.js
Created August 19, 2015 19:58
Fastest JS app ever
;
<?php
date_default_timezone_set('America/New_York');
//Setup
$channelID = 2;
$startInDays = 4;
$scheduleForDays = 7;
$monthsToLookBack = 3;
require_once('nusoap.php');
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("a[href*=mms]").click(function(){
if(!confirm("Do you really wish to view this video. Here is some legal mumbo jumbo?")) {
return false;
}
})
})
</script>
<?php
require_once("ctnDBConnect.php");
require_once('nusoap.php');
$contentPaths = array("/Volumes/VS400/", "/Volumes/SXServer/", "/Volumes/SXSafe/");
$destinationPath = "/Volumes/VODContent/VOD/";
$ffmpegOptions = "-qscale 8 -r 25 -ar 44100 -y";
$ccVODprojectsIDs = array(55, 58, 59); //Add 55 and 58
$report = "";
$skippedReport = "";