This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
// Optional Modernizer (only do this for desktop not mobile) | |
if (!$('html').hasClass('no-touch')) return; | |
var items = el.find('.container'); | |
if (items.length) { | |
$window = $(window); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Helper function that dynamically adds eg. gt480 class to element if it's width is >480px | |
* | |
* Basically simulates media queries for elements | |
*/ | |
Kwf.Utils.ResponsiveEl = function(selector, widths) | |
{ | |
var initEl; | |
if (typeof(widths) != "function") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cluster = require("cluster") | |
, redis = require("redis") // Needs redis server | |
, os = require('os'); | |
var cpus = os.cpus(); | |
var workers = cpus.length || 2; | |
if(cluster.isMaster) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rtmp { | |
server { | |
listen 1935; | |
ping 30s; | |
notify_method get; | |
application myapp { | |
live on; | |
# sample play/publish handlers |