Based on this initial question and associated answers: (De)serialize delimited string to/from Vec.
Here's another way to look at it in Rust playground.
Based on this initial question and associated answers: (De)serialize delimited string to/from Vec.
Here's another way to look at it in Rust playground.
| module Audioware | |
| public static func E(msg: String) -> Void { ModLog(n"π±", AsRef(msg)); } | |
| public static func F(msg: String) -> Void { E(s"[ERROR] \(msg)"); } | |
| public static func D(msg: String, self: wref<IScriptable>) -> Void { E(s"[\(ToString(self.GetClassName()))] \(msg)"); } | |
| public abstract class CoreScriptableService extends ScriptableService { | |
| private cb func OnLoad() { D("on load", this); } | |
| private cb func OnReload() { D("on reload", this); } | |
| private cb func OnInitialize() { |
| trait SetBytes { | |
| fn set_low(&mut self, value: u32); | |
| fn set_high(&mut self, value: u32); | |
| } | |
| trait FullBytes { | |
| fn convert(&mut self) -> u32; | |
| } | |
| impl SetBytes for u64 { |
A quick attempt at RingBuffer implementation.
Find all my merged PR, excluding my own repositories:
is:merged is:pr author:Roms1383 -user:Roms1383
# or
https://github.com/pulls?q=is%3Amerged+is%3Apr+author%3ARoms1383+-user%3ARoms1383+useful when asked, e.g. during job application process, to show one's open-source contributions.
When developping with inkatlas-utils, you first have to create an Adobe Project with a Photoshop Plugin from Adobe Console.
Then, run npm run build from local inkatlas repo.
| # Generated by pub | |
| # See https://dart.dev/tools/pub/glossary#lockfile | |
| packages: | |
| _fe_analyzer_shared: | |
| dependency: transitive | |
| description: | |
| name: _fe_analyzer_shared | |
| url: "https://pub.dartlang.org" | |
| source: hosted | |
| version: "47.0.0" |
| void main() { | |
| print('equivalent in Rust: 1974-10-04 20:39:12.153154 UTC (ms 150151152153154)'); | |
| final ms = 150151152153154; | |
| final millis = (ms / 1000).round(); | |
| final micros = ms % 1000; | |
| print('ms: $ms millis: $millis micros: $micros'); | |
| final date = DateTime(1970,1,1,0,0,0,millis,micros); | |
| print('date: $date micros since epoch: ${date.microsecondsSinceEpoch} micros: ${date.microsecond}'); | |
| final d = DateTime(1970,1,1,0,0,0,0,ms); | |
| print('date: $d micros since epoch: ${d.microsecondsSinceEpoch} micros: ${d.microsecond}'); |
| void main() { | |
| print('equivalent in Rust: 1974-10-04 20:39:12.153154 UTC (ms 150151152153154)'); | |
| final ms = 150151152153154; | |
| final millis = (ms / 1000).round(); | |
| final micros = ms % 1000; | |
| print('ms: $ms millis: $millis micros: $micros'); | |
| final date = DateTime.utc(1970,1,1,0,0,0,millis,micros); | |
| print('date: $date micros since epoch: ${date.microsecondsSinceEpoch} micros: ${date.microsecond}'); | |
| final d = DateTime.utc(1970,1,1,0,0,0,0,ms); | |
| print('date: $d micros since epoch: ${d.microsecondsSinceEpoch} micros: ${d.microsecond}'); |
| void main() { | |
| smallest_int(); | |
| print('----------------'); | |
| smaller_int(); | |
| print('----------------'); | |
| is_it_a_bug_or_a_feature(); | |
| } | |
| void smallest_int() { | |
| print('equivalent in Rust: 1970-01-01 00:02:30.151152 UTC (ms 150151152)'); |