LVReBL ('-' * 6)
A Pen by Captain Anonymous on CodePen.
<head> | |
<link href="http://vjs.zencdn.net/5.11.6/video-js.css" rel="stylesheet"> | |
<!--[if IE 8]> | |
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script> | |
<![endif]--> | |
<script src="http://vjs.zencdn.net/5.11.6/video.js"></script> | |
<script src="videojs-contrib-hls.min.js"></script> | |
</head> |
#!/bin/bash | |
infile=sample_videos/myvideo.mp4 | |
GST_DEBUG=0 gst-launch-1.0 -v \ | |
filesrc location=subtitles.srt ! subparse ! ov. \ | |
filesrc location=$infile ! decodebin name=demuxer ! textoverlay name=ov ! x264enc ! mpegtsmux name=muxer \ | |
demuxer. ! audioconvert ! audioresample ! avenc_mp2 ! muxer. \ | |
muxer. ! hlssink \ | |
playlist-root=/hls-test \ |
LVReBL ('-' * 6)
A Pen by Captain Anonymous on CodePen.
'use strict' | |
angular.module 'farmersmarketApp' | |
.config ($stateProvider) -> | |
$stateProvider | |
.state 'admin-events', | |
url: '/admin/events' | |
templateUrl: 'app/admin/events/events.html' | |
controller: 'AdminEventsCtrl' | |
'use strict'; | |
var _ = require('lodash'); | |
var should = require('should'); | |
var app = require('../../app'); | |
var request = require('supertest'); | |
//var request = require('superagent'); // http://stackoverflow.com/a/14001892/270511 | |
var User = require('./user.model'); | |
describe('PUT /api/users/:id/contactInfo', function() { |
#https://gist.github.com/tlowrimore/5162327 | |
#http://stackoverflow.com/a/15413611/270511 | |
module ActiveRecord::UnionScope | |
def self.included(base) | |
base.send :extend, ClassMethods | |
end | |
module ClassMethods | |
def union_scope(*scopes) |
$('.tags.select2').each -> | |
vocab = $(this).closest('.vocab').data('vocab') | |
opts = { | |
initSelection: (element, callback) -> | |
callback(env.tags[vocab]) | |
multiple: true | |
#allowClear: true | |
placeholder: 'Select one or more' |
$ grunt | |
Running "jshint:all" (jshint) task | |
>> 2 files lint free. | |
Running "karma:unit" (karma) task | |
INFO [karma]: Karma v0.10.9 server started at http://localhost:9876/ | |
INFO [launcher]: Starting browser Firefox | |
INFO [launcher]: Starting browser PhantomJS | |
INFO [PhantomJS 1.9.7 (Linux)]: Connected on socket z1N6cZzaCnwgGhjRXQgj | |
INFO [Firefox 27.0.0 (Ubuntu)]: Connected on socket 7VoPrVjs9NPWsktYXQgk |
$ git diff | |
diff --git a/test/karma.conf.js b/test/karma.conf.js | |
index b5658bc..9e8b81a 100644 | |
--- a/test/karma.conf.js | |
+++ b/test/karma.conf.js | |
@@ -15,7 +15,7 @@ module.exports = function(config) { | |
// list of files / patterns to load in the browser | |
files: [ | |
// Dependencies | |
- 'bower_components/jquery/jquery.js', |
$ grunt | |
Running "jshint:all" (jshint) task | |
>> 2 files lint free. | |
Running "karma:unit" (karma) task | |
INFO [karma]: Karma v0.10.9 server started at http://localhost:9876/ | |
INFO [launcher]: Starting browser Firefox | |
INFO [launcher]: Starting browser PhantomJS | |
WARN [watcher]: Pattern "/home/lsiden/projects/hacks/ui-select2/bower_components/jquery/jquery.js" does not match any file. | |
INFO [PhantomJS 1.9.7 (Linux)]: Connected on socket 4n493v1EA6hT2QbJWO3e |