brew update && brew install elixir
mix local.hex
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
Install Postgresql (if not installed already):
brew install postgresql
import Effects | |
import Effect.File | |
import Effect.StdIO | |
import Control.IOExcept | |
readFile : Eff (FileOpResult (List String)) [FILE R] | |
readFile = readAcc [] where | |
readAcc : List String -> Eff (FileOpResult (List String)) [FILE R] | |
readAcc acc = if (not !eof) | |
then do |
data Format = Number Format | |
| Str Format | |
| Lit Char Format | |
| End | |
%name Format fmt | |
PrintfType : Format -> Type | |
PrintfType (Number fmt) = Int -> PrintfType fmt | |
PrintfType (Str fmt) = String -> PrintfType fmt |
brew update && brew install elixir
mix local.hex
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
Install Postgresql (if not installed already):
brew install postgresql
3:00:49.409 [error] GenServer #PID<0.266.0> terminating | |
** (stop) exited in: GenServer.call(#PID<0.265.0>, {:checkout, :run}, 5000) | |
** (EXIT) an exception was raised: | |
** (UndefinedFunctionError) undefined function: Connection.start_link/2 (module Connection is not available) | |
Connection.start_link(Postgrex.Connection, [hostname: "localhost", timeout: 5000, otp_app: :diarium, repo: Diarium.Repo, adapter: Ecto.Adapters.Postgres, username: "postgres", password: "postgres", database: "diarium_prod", extensions: [{Ecto.Adapters.Postgres.DateTime, []}, {Postgrex.Extensions.JSON, [library: Poison]}], port: 5432]) | |
(ecto) lib/ecto/adapters/connection.ex:27: Ecto.Adapters.Connection.connect/2 | |
(ecto) lib/ecto/pools/poolboy/worker.ex:58: Ecto.Pools.Poolboy.Worker.handle_call/3 | |
(stdlib) gen_server.erl:629: :gen_server.try_handle_call/4 | |
(stdlib) gen_server.erl:661: :gen_server.handle_msg/5 | |
(stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply |
module ElfTimeZone | |
extend ActiveSupport::Concern | |
included do | |
def timezone | |
Time.zone_for(self) | |
end | |
def self.inherited(child) | |
child.columns.select{|c| c.type == :datetime}.each do |c| |
I hereby claim:
To claim this, I am signing this object:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:47) | |
Included patches: 1-52 | |
Modified by pkg-vim-maintainers@lists.alioth.debian.org | |
Compiled by buildd@ | |
Huge version with GTK2-GNOME GUI. Features included (+) or not (-): | |
+acl +farsi +mouse_netterm +syntax | |
+arabic +file_in_path +mouse_sgr +tag_binary | |
+autocmd +find_in_path -mouse_sysmouse +tag_old_static | |
+balloon_eval +float +mouse_urxvt -tag_any_white | |
+browse +folding +mouse_xterm +tcl |
We decided to give you a small practice assignment about javascript event handlers. You need to create a very simple task manager:
Develop a timelogger. It should allow you to record time spent doing a task and give you a summary of all the tasks you did on a given day/week.
Here's how it will work, you say timelogger <taskname>
. <taskname>
is the task you just did. You should store the current timestamp and the <taskname>
. So, the time you spent on <taskname>
is the difference between times of <taskname>
and previous
task. You won't count the amount of time for the very first task.
E.g.
$ timelogger arrived
$ timelogger coffee
$ timelogger school_one