Note: I´am looking for cmd tools (preferred running on mac/linux/win - but it´s not a must) Online services are welcome as well. If you have a good article, stackoverflow post or smth. else on image optimization (with statistics & stuff), i would appriciate if you could share that, too.
#EXTM3U | |
#EXTINF:0,Adult Swim | |
http://adultswimhls-i.akamaihd.net/hls/live/238460/adultswim/main/1/master.m3u8 | |
#EXTINF:0,JUCE TV | |
http://acaooyalahd2-lh.akamaihd.net/i/TBN03_delivery@186241/master.m3u8 | |
#EXTINF:0, NASA TV | |
http://iphone-streaming.ustream.tv/uhls/6540154/streams/live/iphone/playlist.m3u8 | |
#EXTINF:0,CBSN | |
http://www.cbsnews.com/common/video/dai_prod.m3u8 | |
#EXTINF:0,CBN News |
from json import dumps | |
from re import compile as recompile | |
from requests import session as resession | |
ANIME_CATEGORIES = { | |
'Anime': 7424, | |
'Anime Action': 2653, | |
'Anime Comedies': 9302, | |
'Anime Dramas': 452, | |
'Anime Fantasy': 11146, |
"scripts" { | |
"styles:dev": "node-sass --source-map-embed --follow --output-style expanded src/styles/main.scss | postcss -u autoprefixer -u cssnano -o public/main.css --map file" | |
} |
module.exports = { | |
'A lot of screenshots': function (test) { | |
var resolutions = [{width: 1280, height: 1024}, {width: 1024, height: 768}, {width: 800, height: 600}]; | |
var pages = ['http://facebook.com', 'http://twitter.com', 'http://dalekjs.com']; | |
resolutions.forEach(function (res) { | |
pages.forEach(function (page) { | |
test.open(page) | |
.resize(res) |
var ssdp = require('node-ssdp-lite'); | |
var request = require('request'); | |
var _ = require('lodash'); | |
var parseString = require('xml2js').parseString; | |
var client = new ssdp(); | |
var endpoints = {}; | |
var locationFilter = function (msg) { | |
var start = msg.search('LOCATION:') + 'LOCATION:'.length; |
This tutorial will walk you through the basic setup of your own WebDriver server/client system, it will provide you with the basic knowledge on how WebDriver works, but aims not be a full blown browser testing solution etc.
WebDriver is a W3C editors draft for writing automated tests of websites. It aims to mimic the behaviour of a real user, and as such interacts with the HTML of the application.
All implementations of WebDriver that communicate with the browser use the JSON WireProtocol. This wire protocol defines a RESTful web service using JSON over HTTP.
Your cyclomatic complexity is so 1.9,76
In 1976 Thomas J. McCabe, Sr. developed metrics to determine the complexity of the code we write. One year later Maurice Howard Halstead formulated the so called Halstead metric to achieve something similar. 30 years later, we still rely on those abstract numbers that describe the complexity of our code, but do these naked numbers really tell us the truth about our code?