(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.
let (>>) x f = f x ;; | |
let hash = hash_string (Hash.sha256()) ;; | |
let sign_of_message key msg = | |
msg >> hash >> | |
(pkcs1v1pad key) >> | |
(RSA.sign key) >> | |
strrev | |
;; |
(* Unbalanced Binary Tree *) | |
type 'a tree = | |
Node of 'a * 'a tree * 'a tree | |
| Leaf;; | |
(* e.g Node (5, Leaf, Leaf) *) | |
(* val insert : ’a -> ’a btree -> ’a btree = <fun> *) | |
let insert x s = Node (x, Leaf, s);; |
import time | |
from twisted.python import failure | |
from twisted.internet import reactor, defer, task | |
from twisted.internet.protocol import Protocol | |
# Define some messages for our protocol | |
MSG_REQUEST = '>' | |
MSG_REQ_ACK = ':' | |
MSG_REQ_SUCCEEDED = '=' |
// Assuming the following directory structure | |
/* | |
app/ | |
.meteor/ | |
client/ | |
server/ | |
collections/ | |
*/ | |
// 1. Create a collection |
package main | |
import ( | |
"log" | |
"math" | |
) | |
func Round(val float64, roundOn float64, places int ) (newVal float64) { | |
var round float64 | |
pow := math.Pow(10, float64(places)) |
(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.
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
The way your web content behaves on mobile can be dramatically different from the desktop experience. Remote debugging with Chrome DevTools lets you debug live content on your Android device from your development machine.
pragma solidity ^0.4.24; | |
// ---------------------------------------------------------------------------- | |
// Sample token contract | |
// | |
// Symbol : LCST | |
// Name : LCS Token | |
// Total supply : 100000 | |
// Decimals : 2 | |
// Owner Account : 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe |