Skip to content

Instantly share code, notes, and snippets.

Avatar
💪
💪🏻💪🏼💪🏽💪🏾💪🏿🦾

Nikolai Simonov NiKoTron

💪
💪🏻💪🏼💪🏽💪🏾💪🏿🦾
  • Wordlwide
View GitHub Profile
View main.dart
void main() {
print(ApiResolver.v1?.foo);
print(ApiResolver.v1?.bar);
print(ApiResolver.v1?.baz);
print(ApiResolver.v2?.foo);
print(ApiResolver.v2?.bar);
View main.dart
void main() {
final x = 56.65;
final y = x - 56;
print(y);
}
@NiKoTron
NiKoTron / main.dart
Created Aug 20, 2020
bitwise perfomance
View main.dart
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 Mar 30, 2020
named routes with args
View main.dart
// 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 Mar 30, 2020
staic routes navigation
View main.dart
// static 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 Mar 30, 2020
Simple flutter navigation
View main.dart
// Direct navigation
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
View keybase.md

Keybase proof

I hereby claim:

  • I am nikotron on github.
  • I am nikotron (https://keybase.io/nikotron) on keybase.
  • I have a public key ASA0ra2QvvBLdZsgVkDzlANsNR6gHbxIMqchADvyNpQGBgo

To claim this, I am signing this object:

View dart-sdk-updater.sh
#!/bin/sh
chan="dev"
os=$(uname -s)
if [[ ${os} == "Linux" ]]
then
os="linux"
else
os="macos"
View RealmString.java
package ru.wowworks.wowworker.utils.type;
import com.squareup.moshi.FromJson;
import com.squareup.moshi.ToJson;
import io.realm.RealmList;
import io.realm.RealmObject;
public class RealmString extends RealmObject {