Skip to content

Instantly share code, notes, and snippets.

View Enigo's full-sized avatar

Ruslan S. Enigo

View GitHub Profile
pub mod order;
pub mod asset;
use serde::{Deserialize};
#[derive(Deserialize, Debug)]
pub struct Order {
pub result: Vec<TheResult>,
}
#[derive(Deserialize, Debug)]
pub struct TheResult {
pub timestamp: String,
use serde::{Deserialize};
#[derive(Deserialize, Debug)]
pub struct Asset {
pub metadata: Metadata,
}
#[derive(Deserialize, Debug)]
pub struct Metadata {
pub name: String,
@Enigo
Enigo / Cargo.toml
Last active January 23, 2023 06:31
[package]
name = "illuvium-land"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "illuvium-land-runner"
path = "src/main.rs"
[dependencies]
#!/usr/bin/env groovy
pipeline {
parameters {
choice(name: 'ENV', choices: ["test", "prod"], description: 'AWS account to execute in, default test')
}
options {
disableConcurrentBuilds()
}
Env: test
InstanceClass: db.t4g.micro
VPCSecurityGroups: sg-123,sg-456
Subnets: subnet-1,subnet-2,subnet-3
SecretName: /Secret/Manager/name
Env: prod
InstanceClass: db.m6g.large
VPCSecurityGroups: sg-123,sg-456
Subnets: subnet-1,subnet-2,subnet-3
SecretName: /Secret/Manager/name
---
AWSTemplateFormatVersion: 2010-09-09
Description: Postgres Database stack
Parameters:
Env:
Description: Environment tag
Type: String
AllowedValues:
public class LetterControlTest
{
...
[UnityTest]
public IEnumerator WhenChangeColorControlToGreenThenItIsChanged()
{
var colorToChange = ColorCollection.Green;
_letterControl.ChangeColorControl(colorToChange);
yield return new WaitForSeconds(0.15f * 11f);
public class LetterControlTest
{
...
[Test]
public void WhenGetLetterIsCalledValueIsReturned()
{
const string letter = "w";
_text.text = letter;
Assert.AreEqual(letter, _letterControl.GetLetter());
}