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
 
| /** | |
| * 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); | 
| /** | |
| * 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 | 
Compressing 4 bundles with Pound (npm view pound) with JavaScript production code from https://redsmin.com
| #!/bin/bash | |
| dir=/root/deadlocks | |
| [ -d $dir ] || mkdir -p $dir | |
| cd $dir || { echo "Could not cd to $dir"; exit 1; } | |
| mysql -be 'show engine innodb status;' \ | |
| | sed 's/\\n/\n/g' \ | |
| | awk '/TRANSACTIONS/{flag=0}flag;/LATEST DETECTED DEADLOCK/{flag=1}' \ | |
| > latest.txt | 
| #!/bin/bash | |
| # | |
| # Optimize all jpg and png files in the cwd | |
| # Run it again to optimize new files since the last run | |
| # | |
| # Example: | |
| # echo "optimize_media.sh > /tmp/optimize.log" | sudo -u www-data bash -s | |
| # | |
| # Colin Mollenhour 2016 | 
| var server = { | |
| "development": "http://localhost:8000/", | |
| "production": "http://myapp-production.herokuapp.com/", | |
| "staging": "http://myapp-staging.herokuapp.com/" | |
| }[process.env.NODE_ENV || "development"] + "myquery?parameter=VALUE"; | 
| import time | |
| import random | |
| import re | |
| from selenium import webdriver | |
| from selenium.webdriver.common.keys import Keys | |
| from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException | |
| from chatterbot.trainers import ListTrainer | |
| from chatterbot import ChatBot | |
| From f01f8991d2cd4610c0f4284bf7409e999e47b840 Mon Sep 17 00:00:00 2001 | |
| From: Sokolov Yura aka funny_falcon <[email protected]> | |
| Date: Mon, 12 Dec 2016 14:23:17 +0300 | |
| Subject: [PATCH] load.c: reduce memory usage of loaded_features_index | |
| Use integer hashsum instead of string as a key in loaded_features_index. | |
| Do not use ruby strings for substring operation, just plain pointer | |
| and length. | |
| --- | |
| load.c | 41 ++++++++++++++++++++--------------------- | 
| #1431, 25 | |
| #175, 27 | |
| """ | |
| Select right side of the screen where text editor is and type one line | |
| After typing on line go back to terminal and ask for user to hit Enter to continue on to the | |
| next line. | |
| """ | |
| import pyautogui | |
| import random |