Skip to content

Instantly share code, notes, and snippets.

View asciidisco's full-sized avatar
🏠
Working from home

Sebastian Golasch asciidisco

🏠
Working from home
View GitHub Profile
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1500000
http://zh2-5-hls-live.zahs.tv/DE_tele5-live-1500-14D1E1FC67907FD7-5568685CC01CE0D0.m3u8?csid=14D1E1FC67907FD7-5568685CC01CE0D0&encryption=0&maxrate=1500&sig=03462ac59eef4c75ea7b898b541b44b8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=900000
http://zh2-5-hls-live.zahs.tv/DE_tele5-live-900-14D1E1FC67907FD7-5568685CC01CE0D0.m3u8?csid=14D1E1FC67907FD7-5568685CC01CE0D0&encryption=0&maxrate=1500&sig=1182a920277cb5049c333d9886cd24a1
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=600000
http://zh2-5-hls-live.zahs.tv/DE_tele5-live-600-14D1E1FC67907FD7-5568685CC01CE0D0.m3u8?csid=14D1E1FC67907FD7-5568685CC01CE0D0&encryption=0&maxrate=1500&sig=6cc2e44edfcc05e9ec477a26d6c9c179
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1500000
http://zh2-5-hls-live.zahs.tv/DSF-live-1500-14D1E2F54560024C-1613BC563CCD6E02.m3u8?csid=14D1E2F54560024C-1613BC563CCD6E02&encryption=0&maxrate=1500&sig=9aca10158d74a73cd9a6c5c95d975627
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=900000
http://zh2-5-hls-live.zahs.tv/DSF-live-900-14D1E2F54560024C-1613BC563CCD6E02.m3u8?csid=14D1E2F54560024C-1613BC563CCD6E02&encryption=0&maxrate=1500&sig=21d241013786b21dc31e1c36690cf553
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=600000
http://zh2-5-hls-live.zahs.tv/DSF-live-600-14D1E2F54560024C-1613BC563CCD6E02.m3u8?csid=14D1E2F54560024C-1613BC563CCD6E02&encryption=0&maxrate=1500&sig=9de1f9ebd2253c3a0b548e6283df35d3
@asciidisco
asciidisco / functions.js
Last active February 23, 2016 10:28
Reuse tests or navigation functions across DalekJS files
module.exports = {
loginLocal: function (test) {
test
.open('http://thefalloftheeleventh.com')
.type('[name="user"]', 'John Smith')
.type('[name="pass"]', 'tardis')
.click('button[type="submit"]')
.done();
},
@asciidisco
asciidisco / pubsub_with_requirejs_backbone.js
Created October 31, 2012 11:26
PubSub with requirejs & backbone
// PubSub impl. with require.js & backbone.js
// events.js
define(['underscore', 'backbone'], function (_, Backbone) {
'use strict';
var events = {};
_.extend(events, Backbone.Events);
return events;
});
@asciidisco
asciidisco / MyPlugin.js
Last active February 3, 2016 17:41
Webpack Plugin Development -> Create a new chunk bundle that gets loaded async -> Replace the old bundles
function MessageformatGettextBundler(options) {
this.options = {};
this.options.ext = 'po';
}
MessageformatGettextBundler.prototype.apply = function(compiler) {
var opts = this.options;
var LANGUAGE = 'de_DE';
compiler.plugin('this-compilation', function(compilation) {
@asciidisco
asciidisco / feature.thread.js
Last active January 31, 2016 15:57
WebWorker Feature Check
self.onmessage = ({data}) => {
self.postMessage(data.reduce((o, v, i) => {
o[v] = !!self[v]
return o;
}, {}));
};

I have an error compiling sassc with Emscripten, maybe someone is able to point me to the failure or has an idea what I might be doing wrong here...

If I just compile sassc the "normal" way, everything works as expected.

Here are the steps I made (and their output):

$ export SASS_LIBSASS_PATH=/Users/asciidisco/Downloads/sassc/libsass
@asciidisco
asciidisco / whattheperl
Created January 3, 2014 16:48
Converting this line of perl to javascript...
@{$hashQ->{apIDs}}=grep !/$id/,@{$hashQ->{apIDs}};
@asciidisco
asciidisco / simple_koa_spdy_ws.js
Created December 31, 2013 13:12
simple_koa_spdy_ws.js
var spdy = require('spdy');
var WebSocket = require('ws');
var koa = require('koa');
var fs = require('fs');
var views = require('co-views');
// spdy key data
var options = {
key: fs.readFileSync(__dirname + '/keys/server.key'),
cert: fs.readFileSync(__dirname + '/keys/server.crt'),
@asciidisco
asciidisco / dalek_waitFor.js
Created November 15, 2013 13:35
dalek_waitFor.js
// you app code
window.qa = {};
$.get('foobar.php', function (data) {
// this line could be removed during the build
window.qa.requestFooBar = true;
});
// in your dalek test
'waitFor ajax': function (test) {
test.waitFor(function () {