Skip to content

Instantly share code, notes, and snippets.

@da-moon
da-moon / 0_reuse_code.js
Created February 11, 2016 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
0x00118038d1aC0443639CdeDCB7243Bf3C3be5B2e
Verifying my Blockstack ID is secured with the address 1EbRy94U3SFsasmAFLWc5YrDLjPgs1BS1b https://explorer.blockstack.org/address/1EbRy94U3SFsasmAFLWc5YrDLjPgs1BS1b
@da-moon
da-moon / concat.rs
Last active September 7, 2018 17:39
Rust basic Operatrions
// Concat a string inside a loop and trun it into a str
//https://users.rust-lang.org/t/how-do-i-avoid-temporary-value-created-here-errors-when-creating-an-array/9433/14
let mut result: Vec<String> = Vec::new();
let mut counter = 0;
while counter < list.len() {
if counter+1< list.len(){
result.push(format!("For want of a {} the {} was lost.\n", list[counter], list[counter+1]));
}
if counter+1 == list.len(){
result.push(format!("For want of a {} the {} was lost.\n", list[counter-1], list[counter]));
@da-moon
da-moon / ERC 20 ABI
Last active September 20, 2018 22:57
WEB3
https://github.com/ethereum/wiki/wiki/Contract-ERC20-ABI
@da-moon
da-moon / build tools
Last active September 20, 2018 13:52
some config files
https://github.com/nodejs/node-gyp/blob/master/README.md
https://www.theia-ide.org/doc/Composing_Applications.html
https://grpc.io/docs/quickstart/java.html
#Compile and run
$ ./gradlew installDist
#Run Server
signatory/build/install/signatory/bin/signatory signatory/config_ropsten.json
https://blogs.oracle.com/jtc/build-jdk-10-for-your-raspberry-pi-right-on-your-device
https://github.com/asticode/go-astilectron
https://github.com/pavel-v-chernykh/keystore-go
Access Linux Subsytem CPP Compiler
https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/LanguageServer/Windows%20Subsystem%20for%20Linux.md