Skip to content

Instantly share code, notes, and snippets.

View NiKoTron's full-sized avatar
💪
💪🏻💪🏼💪🏽💪🏾💪🏿🦾

Nikolai Simonov NiKoTron

💪
💪🏻💪🏼💪🏽💪🏾💪🏿🦾
View GitHub Profile
@NiKoTron
NiKoTron / main.dart
Created March 30, 2020 21:03
named routes with args
// onGenerateRoute callback navigation
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@NiKoTron
NiKoTron / main.dart
Created August 20, 2020 19:59
bitwise perfomance
void main() {
final x = 256;
var s = Stopwatch();
var bitwiseSumm = 0;
var intDivSumm = 0;
var divSumm = 0;
for (var i = 0; i < 257; i++) {
@NiKoTron
NiKoTron / main.dart
Created May 19, 2021 13:03
double-calcs
void main() {
final x = 56.65;
final y = x - 56;
print(y);
}
@NiKoTron
NiKoTron / main.dart
Created June 15, 2021 06:47
apiresolv
void main() {
print(ApiResolver.v1?.foo);
print(ApiResolver.v1?.bar);
print(ApiResolver.v1?.baz);
print(ApiResolver.v2?.foo);
print(ApiResolver.v2?.bar);
### Keybase proof
I hereby claim:
* I am nikotron on github.
* I am nikotron (https://keybase.io/nikotron) on keybase.
* I have a public key ASBFoHt5ISl23MkWhReDKHnQo0iuO6Nah0hvRPagfv8twQo
To claim this, I am signing this object: