Skip to content

Instantly share code, notes, and snippets.

{
"calls_tree": {
"id": 0,
"parentId": null,
"indent": 0,
"status": "ok",
"gasUsed": 1095807,
"balance": null,
"arguments": [{ "name": "<no ABI>", "type": "", "value": "" }],
@Exef
Exef / GuessTheNumberChallange.sol
Created September 5, 2018 09:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
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) {
@Exef
Exef / gist:38c880d57ea4435662c4261814453a08
Created November 16, 2017 10:18
ElixirBridge - Installfest
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.
@Exef
Exef / gist:6f54e36c2ee6db0bd2f2ade3de5b543b
Last active November 16, 2017 10:16
Opis wydarzenia 25 XI (sobota)
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
@Exef
Exef / ExampleGenServer.ex
Created September 28, 2017 18:10 — forked from Kociamber/ExampleGenServer.ex
Example implementation of Elixir GenServer and some nice comments.
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
@Exef
Exef / .tmux.conf
Created July 16, 2017 05:56 — forked from gblmarquez/.tmux.conf
.tmux.conf with fish as default shell
# 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
@Exef
Exef / tmux-cheatsheet.markdown
Created April 4, 2017 07:54 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname