-
In
~/.ssh/config
, include the lines:Host * ControlPath ~/.ssh/sockets/%r@%h-%p
pragma solidity ^0.4.15; | |
contract StringsAndBytes { | |
/* --- public variables for storing tests results */ | |
string public lastTestStringResult; // | |
bytes32 public lastTestBytes32Result; // | |
bytes public lastTestBytesResult; // bytes: dynamically-sized byte array | |
bool public lastTestBoolResult; // |
// This file is MIT Licensed. | |
// | |
// Copyright 2017 Christian Reitwiessner | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF O |
# Add the following to your existing VPC CF stack | |
# create 2 subnets, lambdas like to be in multiple subnets | |
Private1: | |
Type: AWS::EC2::Subnet | |
Properties: | |
VpcId: !Ref VPC | |
AvailabilityZone: !Select [ 0, !GetAZs ] | |
CidrBlock: !Ref Private1CIDR |
title | subtitle | author | date | source |
---|---|---|---|---|
npm vs Yarn Command Translation Cheat Sheet |
CLI commands comparison |
yarn |
February 15, 2020 |
# See this article for reference: https://help.github.com/articles/dealing-with-line-endings/ | |
# Refreshing repo after line ending change: | |
# https://help.github.com/articles/dealing-with-line-endings/#refreshing-a-repository-after-changing-line-endings | |
# Handle line endings automatically for files detected as text | |
# and leave all files detected as binary untouched. | |
* text=auto | |
# | |
# The above will handle all files NOT found below |
" (N)Vim Configuration File | |
" vim : place in $HOME/.vimrc | |
" nvim : place in $HOME/.config/nvim/init.vim | |
" $ ln -s $HOME/.config/nvim/init.vim $HOME/.vimrc | |
" General settings | |
" https://learnvimscriptthehardway.stevelosh.com/ | |
" --------------------------------------------------------------------------- | |
" drop vi support - kept for vim compatibility but not needed for nvim | |
" Probably not needed with Vim 8+ | |
"set nocompatible |
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
Having seen @pirapira's sketch of Bamboo ( https://github.com/pirapira/bamboo/ ), which proposed to add better control about the "smart contract program flow", even across calls, I thought that this should certainly be added to Solidity, and actually, it might even be possible now to a certain degree using inline assembly.
The problem is that with many functions in a contract, it is not always clear which can be called at which stage in the contract's lifetime. Certain smart contracts would be easier to understand if written as follows: