Compressing 4 bundles with Pound (npm view pound) with JavaScript production code from https://redsmin.com
- times: 37720ms 36971ms
- output size: 533Ko, 479Ko, 120Ko, 538Ko
Compressing 4 bundles with Pound (npm view pound) with JavaScript production code from https://redsmin.com
/** | |
* September 20 night: 1 hour code rush | |
* @FGRibreau | |
* | |
* Requirements | |
* ------------ | |
* The aim of this code rush is to enable developers to define a "range hash map" | |
* in a very expressive way (without if/then/else). | |
* | |
* Data-set |
/** | |
* Add the following code just after UnderscoreJS declaration to find | |
* where _.template calls are run against empty templates. | |
*/ | |
(function(old){ | |
_.template = function(str, data) { | |
if(!str){ | |
console.error("Could not load template", new Error().stack); |
if(!function_exists('apc_exists')){ | |
function apc_exists($keys){ | |
$r; | |
apc_fetch($keys,$r); | |
return $r; | |
} | |
} |
ewogICJ0eXBlIjogInNlcnZpY2VfYWNjb3VudCIsCiAgInByb2plY3RfaWQiOiAicHJvamVjdC0xMDAxMTAiLAogICJwcml2YXRlX2tleV9pZCI6ICIxYmQ2MDAwMDAzOTAwMDAwYmEwMDcxMjhiNzcwZDgzMWIyYjAwMDAwIiwKICAicHJpdmF0ZV9rZXkiOiAiLS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tXG5NSUlFdmdJQkFEQU5CZ2txaGtpRzl3MEJBUUVcbmhPbkx4UWE3cVByWkZMUCsyUzNSYVN1ZHNidW9jVm80YnlaSFxuNWU5Z3NEN056c0QvN0VDSkR5SW5iSDgrTUVKeEZCVy95WVVYNlhITS9kXG41T2lqeUlkQTQrTlBvNktwa0phMldWOEkvS1B0b05MU0s3ZDZvUmRFQVpcbjdFQ0pEeUluYkg4K01FSnhGQlcveVlVWDZYSE0vZFxuNU9panlJZEE0K05QbzZLcGtKYTJXVjhJL0tQdG9OTFNLN2Q2b1JkRUFaXG43RUNKRHlJbmJIOCtNRUp4RkJXL3lZVVg2WEhNL2RcbjVPaWp5SWRBNCtOUG82S3BrSmEyV1Y4SS9LUHRvTkxTSzdkNm9SZEVBWlxuN0VDSkR5SW5iSDgrTUVKeEZCVy95WVVYNlhITS9kXG41T2lqeUlkQTQrTlBvNktwa0phMldWOEkvS1B0b05MU0s3ZDZvUmRFQVpcbjdFQ0pEeUluYkg4K01FSnhGQlcveVlVWDZYSE0vZFxuNU9panlJZEE0K05QbzZLcGtKYTJXVjhJL0tQdG9OTFNLN2Q2b1JkRUFaXG43RUNKRHlJbmJIOCtNRUp4RkJXL3lZVVg2WEhNL2RcbjVPaWp5SWRBNCtOUG82S3BrSmEyV1Y4SS9LUHRvTkxTSzdkNm9SZEVBWlxuN0VDSkR5SW5iSDgrTUVKeEZCVy95WVVYNlhITS9kXG41T2lqeUlkQTQrTlBvNktwa0phMldWOEkv |
#!/bin/sh | |
git checkout gh-pages | |
git rebase master | |
git checkout master |
// Cleaner approach than setInterval + click. | |
var t = angular.element(document.querySelector('.reaction-time-test')).scope().test; | |
t.trials = Array.apply(null, new Array(5)).map(function(a){ | |
var trial = t.nextTrial(); | |
trial.result = 100; | |
trial.timeWaited = 3000+~~(Math.random() * 1000); | |
return trial; | |
}); | |
t.save(); |
// First configure $animateProvider | |
angular.module('MyApp', ['ngAnimate']).config(['$animateProvider', function($animateProvider){ | |
// restrict animation to elements with the bi-animate css class with a regexp. | |
// note: "bi-*" is our css namespace at @Bringr. | |
$animateProvider.classNameFilter(/bi-animate/); | |
}]); |
//Find the iframe in the current document | |
var doc = $('#myIframe').contents()[0]; | |
//Get the iframe's window context | |
var iFrameWindow = 'defaultView' in doc? doc.defaultView : doc.parentWindow; | |
//Now we can get jQuery by doing iFrameWindow.$ or iFrameWindow.jQuery | |
iFrameWindow.$('selector').data('key') |
machine: | |
services: | |
- docker | |
test: | |
override: | |
# don't forget to replace "1.18" with your rust version | |
- docker run -it --rm -v $(pwd):/source -w /source scorpil/rust:1.18 cargo test |