Install prerequisites
brew install pkg-config autoconf automake libtool nasm
Download latest source from https://github.com/mozilla/mozjpeg/releases/latest
cd
Year | MSCI World | Inflation Germany | Net Growth | |
---|---|---|---|---|
1970 | -1.98% | 3.1% | -5.08% | |
1971 | 19.56% | 4.7% | 14.86% | |
1972 | 23.55% | 4.6% | 18.95% | |
1973 | -14.51% | 6.6% | -21.11% | |
1974 | -24.48% | 7.2% | -31.68% | |
1975 | 34.50% | 5.4% | 29.10% | |
1976 | 14.71% | 3.2% | 11.51% | |
1977 | 5.00% | 3.9% | 1.10% | |
1978 | 18.22% | 2.4% | 15.82% |
# https://github.com/rakyll/hey | |
./hey https://google.com | |
Summary: | |
Total: 0.8679 secs | |
Slowest: 0.5881 secs | |
Fastest: 0.0710 secs | |
Average: 0.1778 secs | |
Requests/sec: 230.4501 |
Install prerequisites
brew install pkg-config autoconf automake libtool nasm
Download latest source from https://github.com/mozilla/mozjpeg/releases/latest
cd
TimeMachine using cron and rsync ;-) | |
Backs up in two intervals: 10 and 60 minutes | |
$ crontab -l | |
*/10 * * * * rsync -a -q --delete ~/projects/ ~/Desktop/projects10/ | |
0 * * * * rsync -a -q --delete ~/projects/ ~/Desktop/projects60/ |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# This script reproduces the issue with artifacts when | |
# handling (semi)transparent PNG files: | |
# https://github.com/python-pillow/Pillow/issues/1449 | |
# Version used: | |
# |
One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {
require 'benchmark' | |
class Guesstimator | |
@@instances={} | |
attr_accessor :total_operations | |
attr_accessor :remaining_operations | |
attr_reader :exp_moving_average |
# | |
# Generate curl command from a Typhoeus request. | |
# | |
# Example: | |
# | |
# > request = Typhoeus::Request.post("http://example.com", {body: "fine stuff"}).request | |
# > TyphoeusToCurl.new.to_curl(request) | |
# | |
# => "curl 'http://example.com' -X POST -H \"User-Agent: Typhoeus" -d 'fine stuff' --compressed" | |
# |
import java.util.*; | |
public class HowFastIsMax { | |
private static final int INTEGERS_IN_LIST = 1000000; | |
private static final int TEST_RUNS = 10; | |
public static void main(String[] args) { | |
List<Integer> list = fillRandomIntList(); | |
for (int i = 0; i < TEST_RUNS; i++) { |
# ~/.irbrc | |
# $ gem install ruby-prof | |
# $ irb | |
# >> profile2file { 500_000.times{345345 ** 15} } | |
# Find profile results in /Users/mat/profile-1314789858.[txt|html] | |
# => 500000 | |
module Kernel | |
def profile2file(filename = "profile-#{Time.now.to_i}") |