A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.
- xcode 5.1.1
- python 3.4.0
- Qt libraries 5.2.1
module Inc = Incremental_lib.Incremental.Make () | |
open Inc | |
let make init = | |
let num = 4 in | |
let den_v = Var.create init in | |
let den = Var.watch den_v in | |
(* computes "if den = 0 then 0 else num / den" *) | |
let div = bind den (fun den -> return (num / den)) in |
Dagger step 1: Add android-apt, dagger 2, dagger2-compiler, and javax annotation to the build.gradle files. | |
Note that they're not all "compile" dependencies. | |
Step 2: Add our module. Our ApplicationModule will be able to inject the ApplicationContext to classes that need it. | |
Step 3: Add our Component.Dagger 2 generates code for each Component you create, | |
using the file name Dagger(NameOfComponent). | |
Example: DaggerApplicationComponent. | |
Components can have multiple modules, in our case we have one. |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
# Environment, set GEM_HOME & GEM_PATH. For example, we can launch JRuby like this: | |
# GEM_HOME=/Users/amurray/tmp/gems/ GEM_PATH=/Users/amurray/tmp/gems java -jar ~/Downloads/jruby-complete-1.7.0.preview1.jar -S irb | |
# ===================== | |
# LISTING gems | |
puts Gem::Specification.find_all.to_s | |
puts Gem::Specification.find_all.map{|spec| "#{spec.name} (#{spec.version})" } | |
# ===================== | |
# USING (a specific version of) gems |