start new:
tmux
start new with session name:
tmux new -s myname
| { | |
| "calls_tree": { | |
| "id": 0, | |
| "parentId": null, | |
| "indent": 0, | |
| "status": "ok", | |
| "gasUsed": 1095807, | |
| "balance": null, | |
| "arguments": [{ "name": "<no ABI>", "type": "", "value": "" }], |
| pragma solidity ^0.4.21; | |
| contract GuessTheNumberChallenge { | |
| uint8 answer = 42; | |
| function GuessTheNumberChallenge() public payable { | |
| require(msg.value == 1 ether); | |
| } | |
| function isComplete() public view returns (bool) { |
| ElixirBridge - Installfest | |
| Zapraszamy na warsztat z Elixira dla początkujących tak jak zapowiedzieliśmy Elixirowym Meetupie. | |
| Jeśli potrzebujesz pomocy w skonfigurowaniu swojego komputera przed warsztatami (link do sobotnego wydarzenia) to z chęcią Ci pomożemy. Wpadnij na chwilę z swoim komputerem, a my przygotujemy go. | |
| Warsztat jest przygotowany w oparciu o ElixirBridge. Zapraszamy na kolejne warsztaty. |
| ElixirBridge I - Warsztaty z Elixir dla początkujących | |
| Zapraszamy na warsztat z Elixira dla początkujących tak jak zapowiedzieliśmy Elixirowym Meetupie. | |
| “Elixir to dynamiczny, funkcyjny język zaprojektowany z myślą o budowie skalowalnych i łatwych w utrzymaniu aplikacji.” — elixir-lang.org | |
| W trakcie tego spotkania poznasz podstawy Elixira: typy, operatory, pattern matching, podstawowe funkcje. Jeśli starczy czasu to zobaczysz w jak prosty sposób stworzyć czat w Phoenixie (framework webowy). | |
| Wymagania: | |
| - własny komputer z zainstalowanym Elixirem, Phoenixem, PostgreSql |
| defmodule ExampleGenServer do | |
| ## Client API | |
| use GenServer | |
| # Starts detached process of GenServer | |
| def start_link do | |
| # Fisrt arg is a GenServer's module name, second one is its initial state and/or its type | |
| # Name of a process can be specified (name: :name) but it also prevents of running multiple process of the same type |
| # Default termtype. If the rcfile sets $TERM, that overrides this value. | |
| set -g default-terminal screen-256color | |
| # support logging out and back in | |
| set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION" | |
| # pbcopy support | |
| set-option -g default-command "reattach-to-user-namespace -l bash" | |
| # vi mode |