Dockerized: V2ray + WebSocket + TLS + Web
also see: https://toutyrater.github.io/advanced/wss_and_web.html
Server side sontents:
- Caddyfile
- config.json
- docker-compose.yml
Client side contents:
* @title Metamorphic Contract | |
* @author 0age, derived from cloner contract by @mhswende | |
* @notice This contract will create a metamorphic contract, or an upgradeable | |
* contract that does not rely on a transparent proxy, when deployed using | |
* CREATE2. It expects the deployer to provide a getImplementation() function | |
* that will return an implementation address, which it will then clone and | |
* deploy. Unlike with upgradeable transparent proxies, the state of a | |
* metamorphic contract will be wiped clean with each upgrade. With great power | |
* comes great responsibility - implement appropriate controls and educate the | |
* users of your contract if it will be interacted with! |
Dockerized: V2ray + WebSocket + TLS + Web
also see: https://toutyrater.github.io/advanced/wss_and_web.html
Server side sontents:
Client side contents:
Complete tutorial commands and its results and a message exchange between Python and Go as an additional example.
$ brew install protobuf
$ pip install protobuf
// move_semantics1.rs | |
// Make me compile! Scroll down for hints :) | |
pub fn main() { | |
let vec0 = Vec::new(); | |
let mut vec1 = fill_vec(vec0); | |
println!("{} has length {} content `{:?}`", "vec1", vec1.len(), vec1); |
ELASTIC_VERSION=5.6.9 | |
#ELASTIC_VERSION=6.3.0 |
from keras import applications | |
from keras.preprocessing.image import ImageDataGenerator | |
from keras import optimizers | |
from keras.models import Sequential, Model | |
from keras.layers import Dropout, Flatten, Dense, GlobalAveragePooling2D | |
from keras import backend as k | |
from keras.callbacks import ModelCheckpoint, LearningRateScheduler, TensorBoard, EarlyStopping | |
img_width, img_height = 256, 256 | |
train_data_dir = "tf_files/codoon_photos" |
# Requirement: pip install ledgerblue | |
from ledgerblue.comm import getDongle | |
import struct | |
ETH_DERIVATION_PATH_PREFIX = "44'/60'/0'/" | |
class LedgerAccount: | |
""" | |
Ledger Ethereum App Protocol Spec is located at: | |
<https://github.com/LedgerHQ/blue-app-eth/blob/master/doc/ethapp.asc> |
#!/bin/bash | |
ACCOUNT="user" | |
PASSWORD="123456" | |
######################################### | |
function urlEncode() { | |
python -c " | |
import urllib, commands, os; |
# Use this script to test that your Telegram bot works. | |
# | |
# Install the dependency | |
# | |
# $ gem install telegram_bot | |
# | |
# Run the bot | |
# | |
# $ ruby bot.rb | |
# |
//: A UIKit based Playground for presenting user interface | |
import UIKit | |
import PlaygroundSupport | |
enum Stone { | |
case Black, White, None | |
func opposite() -> Stone { | |
switch self { |