https://github.com/DamRsn/NeuralNote
https://github.com/BShakhovsky/PolyphonicPianoTranscription
import 'package:flutter/cupertino.dart'; | |
class UndoChangeNotifier<T> extends ChangeNotifier { | |
List<T> _history; | |
int _historyIndex; | |
UndoChangeNotifier([T initialState]) { | |
_history = initialState != null ? [initialState] : []; | |
_historyIndex = initialState != null ? 0 : -1; | |
} |
import 'package:flutter/material.dart'; | |
class AppStyle { | |
static double get paddingUnit => 16; | |
static TextStyle get text28 => TextStyle(fontSize: 28).withTightSpacing; | |
static TextStyle get text20 => TextStyle(fontSize: 20).withTightSpacing; | |
static TextStyle get text16 => TextStyle(fontSize: 16).withNormalSpacing; | |
static TextStyle get text14 => TextStyle(fontSize: 14).withNormalSpacing; | |
static TextStyle get text12 => TextStyle(fontSize: 12).withWideSpacing; |
import 'dart:math' as math; | |
import 'dart:ui' as ui; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
const kBarWidth = 72.0; | |
const kBarSpacing = 4.0; | |
const kLabelHeight = 32.0; |
import 'dart:async'; | |
import 'dart:html'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
enum _DragState { | |
dragging, | |
notDragging, | |
} |
/// Given some `dart:io` method that returns a PlatformType enum | |
PlatformType get currentPlatform => PlatformType.windows; | |
enum PlatformType { android, fuschia, iOS, linux, macOS, windows } | |
/// Intersection package, ie `video_player` exposes a common interface | |
abstract class PlatformVideoController { | |
Stream<double> get progress; | |
Future<void> play(); | |
Future<void> pause(); | |
} |
// MIT License | |
// | |
// Copyright (c) 2019 Simon Lightfoot | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
name: Build and publish Jekyll Docker image for Octocat Generator | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: clean up, docker login && docker build && docker push |
use crypto::chacha20::ChaCha20; | |
use crypto::symmetriccipher::SynchronousStreamCipher; | |
use std::io::prelude::*; | |
// Typedefs | |
type ReadResult = std::io::Result<usize>; | |
type WriteResult = std::io::Result<usize>; | |
type FlushResult = std::io::Result<()>; |
import { | |
Entity, | |
PrimaryGeneratedColumn, | |
Column, | |
ManyToOne, | |
BaseEntity, | |
} from 'typeorm' | |
import { Profile } from 'entities' | |
import { ActivityTargetType, ActivityVerb } from './enums' |