This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2018-04-25T08:14:23.411Z","extensionVersion":"v2.9.0"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": [ | |
"tslint:latest" | |
], | |
"rules": { | |
"quotemark": [ | |
"single" | |
], | |
"ordered-imports": [ | |
false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some interesting urls: | |
- https://github.com/bluedigits/iota-node | |
- https://forum.helloiota.com/2424/Setting-up-a-VPS-IOTA-Full-Node-from-scratch | |
Basically, run this: | |
```sh | |
docker run -d -p 14265:14265 -p 15777:15777 -p 14777:14777/udp --name iri iotaledger/iri /usr/bin/java -XX:+DisableAttachMechanism -Xmx8g -Xms256m -Dlogback.configurationFile=/iri/conf/logback.xml -Djava.net.preferIPv4Stack=true -jar iri.jar -p 14265 -u 14777 -t 15777 --remote | |
#finally | |
docker run -d -p 18600:18600 -p 16600:16600 --name nelson romansemko/nelson -r localhost -i 14265 -u 14777 -t 15777 --neighbors "mainnet.deviota.com/16600 mainnet2.deviota.com/16600 mainnet3.deviota.com/16600 iotairi.tt-tec.net/16600" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CustomErrorHandler extends ErrorHandler { | |
handleError(error: Error) { | |
// do something with the exception | |
} | |
} | |
@NgModule({ | |
providers: [{ provide: ErrorHandler, useClass: CustomErrorHandler }], | |
}) | |
class AppModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CustomErrorHandler implements IonicErrorHandler { | |
handleError(error: Error) { | |
// do something with the exception | |
} | |
} | |
@NgModule({ | |
providers: [{ provide: ErrorHandler, useClass: CustomErrorHandler }], | |
}) | |
class AppModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "aws-lambda-rust" | |
version = "0.1.0" | |
authors = ["You <[email protected]>"] | |
edition = "2018" | |
autobins = false | |
[[bin]] | |
name = "bootstrap" | |
path = "src/main.rs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use lambda_runtime::{error::HandlerError, lambda}; | |
use std::error::Error; | |
use serde_derive::{Serialize, Deserialize}; | |
// Struct that will hold information of the request. | |
// When we use an API Gateway as a proxy, which is the default | |
// behaviour when we create it from the Lambda website, the request | |
// will have a specific format with many different parameters. | |
// We're only going to use `queryStringParameters` to check the | |
// query string parameters (normally for GET requests) and `body` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// query string params is an object | |
"queryStringParameters": { | |
"firstName": "Roberto" | |
}, | |
// body always comes as a string | |
"body": "{ \"firstName\": \"Rob\" }" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use azure_functions::func; | |
use azure_functions::bindings::{HttpRequest, HttpResponse}; | |
use serde_derive::Deserialize; | |
// Struct that will hold information about the body of the request. | |
#[derive(Deserialize)] | |
pub struct Body { | |
name: String, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[dependencies] | |
azure-functions = "0.3.0" | |
log = "0.4.6" | |
serde = "1.0.82" | |
serde_derive = "1.0.82" | |
serde_json = "1.0.33" |
OlderNewer