I hereby claim:
- I am erainey on github.
- I am erainey (https://keybase.io/erainey) on keybase.
- I have a public key ASBHm7NofnWXdDgA0WNCpfd7vdFBnPJSIn0i4IfnUdKaDAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
REMIX EXAMPLE PROJECT | |
Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer. | |
It contains 3 directories: | |
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
SCRIPTS |
/*** | |
This function will read the full structure of a directory. It's recursive becuase it doesn't stop with the one directory, it just keeps going through all of the directories in the folder you specify. | |
http://www.codingforums.com/showthread.php?t=71882 | |
***/ | |
function getDirectory( $path = '.', $level = 0 ){ | |
$ignore = array( 'cgi-bin', '.', '..' ); | |
// Directories to ignore when listing output. Many hosts |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
func main() { | |
rand.Seed(time.Now().UnixNano()) |