Skip to content

Instantly share code, notes, and snippets.

View rchaser53's full-sized avatar

rChaser53 rchaser53

View GitHub Profile
import { IsNotEmpty, ValidateNested, IsString, validate } from 'class-validator'
import { plainToInstance, Type } from 'class-transformer';
import 'reflect-metadata';
class Hoge {
@IsNotEmpty()
@IsString()
id: string;
// @Typeを使ってclassのinstanceにする必要がある
@rchaser53
rchaser53 / playground.rs
Created January 27, 2020 12:31
Code shared from the Rust Playground
fn main() {
let lorem = vec!["ipsum",
"dolor",
"sit",
"amet",
"consectetur",
"adipiscing",
"elit",];
}
@rchaser53
rchaser53 / playground.rs
Created January 23, 2020 14:02
Code shared from the Rust Playground
// This code was saved by an automated test for the Rust Playground
@rchaser53
rchaser53 / playground.rs
Created January 23, 2020 13:52
Code shared from the Rust Playground
// This code was saved by an automated test for the Rust Playground
@rchaser53
rchaser53 / playground.rs
Created January 23, 2020 13:47
Code shared from the Rust Playground
// This code was saved by an automated test for the Rust Playground
@rchaser53
rchaser53 / playground.rs
Created January 23, 2020 13:46
Code shared from the Rust Playground
// This code was saved by an automated test for the Rust Playground
@rchaser53
rchaser53 / playground.rs
Created January 23, 2020 13:46
Code shared from the Rust Playground
// This code was saved by an automated test for the Rust Playground
@rchaser53
rchaser53 / playground.rs
Created January 23, 2020 13:43
Code shared from the Rust Playground
// This code was saved by an automated test for the Rust Playground
@rchaser53
rchaser53 / playground.rs
Created January 23, 2020 13:34
Code shared from the Rust Playground
// This code was saved by an automated test for the Rust Playground
@rchaser53
rchaser53 / playground.rs
Created January 22, 2020 14:55
Code shared from the Rust Playground
extern {
pub static lorem: c_int;
}