This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
/* tested on the iPad and iPhone */ | |
function getZoomFactor() { | |
var deviceWidth, landscape = Math.abs(window.orientation) == 90 | |
// workaround for strange screen.height on the iPhone (v3.1.3) | |
if (window.screen.width == 320) deviceWidth = landscape ? 480 : 320 | |
else deviceWidth = window.screen[landscape ? "height" : "width"] | |
return deviceWidth / window.innerWidth | |
} |
#!/usr/bin/env python | |
import binascii, sys, json | |
from libmproxy import version, tnetstring, flow | |
from datetime import datetime | |
def create_har(flows): | |
return { | |
"log":{ |
Calculating ------------------------------------- | |
@choonkeat 1.000 i/100ms | |
@sferik 1.000 i/100ms | |
------------------------------------------------- | |
@choonkeat 0.100 (± 0.0%) i/s - 1.000 in 10.000901s | |
@sferik 0.099 (± 0.0%) i/s - 1.000 in 10.087707s | |
Comparison: | |
@choonkeat: 0.1 i/s | |
@sferik: 0.1 i/s - 1.01x slower |
package main | |
import ( | |
"testing" | |
"unicode" | |
"unicode/utf8" | |
"github.com/stretchr/testify/assert" | |
) |
This is transcript of Tech Talk: Linus Torvalds on Git at Google on YouTube.
Thank you, for coming everybody, some of you probably already have heard of Linus Torvalds, those of you who haven't, you are the people with Macintoshes on your laps.
Should be work with 0.18
Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !
myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))