Outline
- 1. Introduction
- 2. Github SSH for private repositories
- 2.1. Generate keys
- 2.2. Adding your SSH key to the ssh-agent
:set number | |
filetype plugin indent on | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
call plug#begin('~/.vim/plugged') | |
pragma solidity ^0.4.24; | |
/** | |
* @title ERC223 | |
* @dev New Interface for ERC223 | |
*/ | |
contract ERC223 { | |
// functions |
pragma solidity ^0.4.24; | |
contract Team { | |
string public name; | |
string public uri = ""; | |
uint public rank = 0; | |
uint public wins = 0; | |
uint public looses = 0; | |
uint public ties = 0; |
pragma solidity ^0.4.17; | |
import './StandardERC223Token.sol'; | |
/** | |
* @title Pausable | |
* @dev Base contract which allows children to implement an emergency stop mechanism. | |
*/ | |
contract Pausable is Ownable { |
pragma solidity ^0.4.17; | |
import './StandardERC223Token.sol'; | |
/** | |
* @title Pausable | |
* @dev Base contract which allows children to implement an emergency stop mechanism. | |
*/ | |
contract Pausable is Ownable { |
const HDWalletProvider = require("truffle-hdwallet-provider"); | |
require('dotenv').config() // Store environment-specific variable from '.env' to process.env | |
module.exports = { | |
networks: { | |
development: { | |
host: 'localhost', | |
port: 8545, | |
network_id: '*' // Match any network id |
import numpy as np | |
import tensorflow as tf | |
from tensorflow.python.framework import dtypes | |
# 1. Setting up initial values | |
x = np.zeros((7, 7, 3)) | |
x[:, :, 0] = np.mat( | |
"0 0 0 0 0 0 0;0 0 1 0 1 0 0;0 2 1 0 1 2 0;0 0 2 0 0 1 0;0 2 0 1 0 0 0;0 0 0 1 2 2 0;0 0 0 0 0 0 0" | |
).A |
# reference : http://www.imagemagick.org/Usage/crop/ | |
for PHOTO in *.jpeg | |
do | |
BASE=`basename $PHOTO` | |
convert $BASE -crop `convert $BASE -virtual-pixel edge -blur 0x15 -fuzz 15% \ | |
-trim -format '%wx%h%O' info:` +repage cropped/$BASE; | |
done |
Tested with Apache Spark 2.1.0, Python 2.7.13 and Java 1.8.0_112
For older versions of Spark and ipython, please, see also previous version of text.