Skip to content

Instantly share code, notes, and snippets.

View oshibka404's full-sized avatar
🐗

Andrey Ozornin oshibka404

🐗
View GitHub Profile
@oshibka404
oshibka404 / perfectFirst.dsp
Created May 10, 2020 13:31
Perfect First Synthesizer MVP
declare name "Perfect First Synth";
declare author "Andrey Ozornin";
declare copyright "Aesthetics Engineering";
declare version "0.01";
declare license "BSD";
declare options "[midi:on][nvoices:5]";
import("stdfaust.lib");
hide(x) = tgroup("Hidden", x);
@oshibka404
oshibka404 / copy_text.dart
Last active June 10, 2020 16:24
Copy value from one `Text` to another on
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
class TextWidget extends StatefulWidget {
_TextWidgetState createState() => _TextWidgetState();
}
@oshibka404
oshibka404 / copy_text_2.dart
Created June 10, 2020 16:30
Copy value from one Text widget to another using two state variables
import 'package:flutter/material.dart';
class TextWidget extends StatefulWidget {
_TextWidgetState createState() => _TextWidgetState();
}
class _TextWidgetState extends State<TextWidget> {
String _text1 = "Value to be copied";
String _text2 = "";
@override
@oshibka404
oshibka404 / fraction.dart
Created July 1, 2020 09:53
Fractional part
import 'dart:math' show pow;
void main() {
var number = 4734.602654867;
var digits = 4;
print(getFraction(number, digits));
}
int getFraction(double number, int digits) => (number % 1 * pow(10, digits)).floor();

Read list

Eric Raymond

Paul Graham

  • How to do what you love: thoughts on what it takes to recognize what you love to do, what it really means to love what you do, and why so many people pretend they do love their obviously boring jobs.
  • Do things that don't scale what's so special about early stages of project development and how you should approach it,
  • Good and bad procrastination: procrastination sometimes seems inevitable, but is there a way to utilize it?
@oshibka404
oshibka404 / Privacy policy
Last active July 11, 2020 20:00
Privacy policy of Synt app
"Synt" app does not collect or use your data.

Wish list

Second-hand things are preferrable to brand new, even if they have signs of use. History is always a good bonus to a thing itself.

In order from expensive to affordable: