Set up Pipelight with Silverlight on Ubuntu
- Remove the existing packages
sudo apt-get purge pipelight sudo apt-get purge pipelight-multi
- Re-install and update packages
sudo add-apt-repository ppa:pipelight/stable sudo apt-get update
;; Perl: $RE{num}{-base => 2}{real}{-group => 3}{-sep => ','} | |
(re-seq (re :real {:base 2 :group 3 :sep \,} ) "1.345") |
(defn parse-flags | |
"Parse a list of flags. Each flag name must be a keyword, and the | |
value must not be a keyword. If the value is omitted, true is | |
assumed. Returns a map. | |
e.g. (parse-flags [:i :j 1 :k \"two\"]) | |
=> {:i true, :j 1, :k \"two\"}" | |
[flags] | |
(loop [flags (seq flags) accum {}] | |
(if flags |
$ lein2 repl | |
Welcome to REPL-y! | |
Clojure 1.3.0 | |
user=> (use '[cemerick.pomegranate :only (add-dependencies)]) | |
nil | |
user=> (add-dependencies :coordinates '[[quil "1.0.0-SNAPSHOT"]]) | |
ArtifactNotFoundException Could not find artifact quil:quil:jar:1.0.0-SNAPSHOT in central (http://repo1.maven.org/maven2/) org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap (WagonRepositoryConnector.java:946) | |
user=> (add-dependencies :coordinates '[[quil "1.0.0-SNAPSHOT"]] :repositories (merge cemerick.pomegranate.aether/maven-central {"clojars" "http://clojars.org/repo"})) |
echo "pointer = 1 2 3 5 4 7 6 8 9 10 11 12" > ~/.Xmodmap && xmodmap ~/.Xmodmap |
sudo apt-get purge pipelight
sudo apt-get purge pipelight-multi
sudo add-apt-repository ppa:pipelight/stable
sudo apt-get update
/* | |
Overview | |
-------- | |
To run a query using anorm you need to do three things: | |
1. Connect to the database (with or without a transaction) | |
2. Create an instance of `anorm.SqlQuery` using the `SQL` string interpolator | |
3. Call one of the methods on `SqlQuery` to actually run the query |
object TypeclasseDemo { | |
// The parts of the type class pattern are: | |
// | |
// 1. the "type class" itself -- a trait with a single type parameter; | |
// | |
// 2. type class "instances" for each type we care about, | |
// each marked with the `implicit` keyword; | |
// | |
// 3. an "interface" to the type class -- one or more methods |
dd if=~/Downloads/ubuntu-15.10-desktop-amd64.iso of=/dev/sdb && sync |
# The following packages are needed during `make` | |
# - openssl-devel so you don't get: | |
# ContentHash.cpp:13:10: fatal error: openssl/sha.h: No such file or directory | |
# - redhat-rpm-config so you don't get: | |
# gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory | |
# - python-devel so you don't get: | |
# pywatchman/bser.c:31:10: fatal error: Python.h: No such file or directory | |
sudo dnf install openssl-devel redhat-rpm-config python-devel | |
# The rest is just instructions from |