Skip to content

Instantly share code, notes, and snippets.

(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['video.js'], factory);
} else if (typeof exports !== "undefined") {
factory(require('video.js'));
} else {
var mod = {
exports: {}
};
factory(global.videojs);
@Jorenm
Jorenm / cra.html
Created July 16, 2018 19:36
Brute force the CRA math for trencher long gunners.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script>
var iterations = 100000;
var totalDamage = 0;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
@Jorenm
Jorenm / gist:6d1a7be9d4d7ce1d9208
Created June 14, 2014 01:02
Angular orderBy filter which will traverse objects.
MyApp.filter 'orderObjectBy', () ->
return (items, fields, reverse) ->
filtered = []
angular.forEach items, (item) ->
filtered.push(item)
filtered.sort (a, b) ->
sifted_item_a = a
sifted_item_b = b
angular.forEach fields, (field) ->
C:\Users\Ozymandias\workspace\followupthen>php composer.phar instal --no-dev
Loading composer repositories with package information
Installing dependencies from lock file
Warning: The lock file is not up to date with the latest changes in composer.jso
n. You may be getting outdated dependencies. Run update to update them.
- Installing ezyang/htmlpurifier (v4.5.0)
[RuntimeException]