From 0.19 Elm introduced 4 ways to boot an app:
- sandbox (no outside interaction)
- element (simple outside interaction - side effect, flags, subscriptions)
- document (same as above but with title tag control)
- application (whole SPA features)
LONGEST_KEY = 1 | |
def lookup(steno): | |
if len(steno) != 1: | |
raise KeyError | |
stroke = steno[0] | |
if stroke == "RA*U": | |
return "{plover:solo_dict:+raw.py}" | |
elif stroke == "RA*UZ": |
From 0.19 Elm introduced 4 ways to boot an app:
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" |
// updated for Swift 3 | |
import Carbon | |
// Swift version of https://developer.apple.com/library/mac/technotes/tn2084/_index.html | |
@IBAction func testButtonPushed(sender: AnyObject) { | |
guard let url = NSBundle.main.url(forResource: "SendFinderMessage", withExtension: "scpt") else { | |
return | |
} |
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
// Swift version of https://developer.apple.com/library/mac/technotes/tn2084/_index.html | |
@IBAction func testButtonPushed(sender: AnyObject) { | |
let URL = NSBundle.mainBundle().URLForResource("SendFinderMessage", withExtension: "scpt")! | |
var errors: NSDictionary? | |
let script = NSAppleScript(contentsOfURL: URL, error: &errors)! | |
ffmpeg -i in.mov -vf scale=800:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -layers Optimize -loop 0 - out.gif |
$ brew upgrade mysql | |
Warning: Your Xcode (3.2.5) is outdated | |
Please install Xcode 3.2.6. | |
==> Upgrading mysql | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mysql-5.5.28.snowleopard.bottle.tar.gz | |
######################################################################## 100.0% | |
==> Pouring mysql-5.5.28.snowleopard.bottle.tar.gz | |
==> Caveats | |
Set up databases to run AS YOUR USER ACCOUNT with: | |
unset TMPDIR |