(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
onKeyUp : Json.Decoder Msg | |
onKeyUp = | |
Json.oneOf | |
[ logged "keyDecoder" keyDecoder | |
-- , charCodeDecoder -- only on keypress | |
, logged "keyCodeDecoder" keyCodeDecoder | |
, logged "whichDecoder" whichDecoder | |
, logged "keyIdentifierDecoder" keyIdentifierDecoder | |
, logged "charDecoder" charDecoder | |
] |
module App.State exposing (..) | |
{- | |
We need the URL for the websocket. This will be the phoenix server url, then | |
the route for the socket, then "websocket" because that's the transport we're | |
communicating with. | |
-} | |
processEvent : ERT.OutMsg -> Model -> ( Model, Cmd Msg ) | |
processEvent msg model = | |
case msg of | |
ERT.OnNoOp -> | |
model ! [] | |
ERT.ToPhx phxMsg -> | |
processPhxTwo (Phx2.toProcessPhx phxMsg Event) model | |
ERT.OnNavigate url -> |
pragma solidity ^0.4.18; | |
// ---------------------------------------------------------------------------- | |
// 'bitfwd' CROWDSALE token contract | |
// | |
// Deployed to : 0xD0FDf2ECd4CadE671a7EE1063393eC0eB90816FD | |
// Symbol : GRR | |
// Name : Tiger Token | |
// Total supply: Gazillion | |
// Decimals : 0 |
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
Tour Goals for the DeFi Platform Codebase
This tour is designed to provide newcomers with a comprehensive understanding of our DeFi platform's architecture, core functionality, and key integration points. By following these tour goals, users will gain valuable insights into the project's design, security mechanisms, and overall purpose as a flexible and secure DeFi ecosystem.
Goal 1: High-level Overview of the Project's Purpose and Architecture
Goal 2: Deep Dive into the Vault Contract