Skip to content

Instantly share code, notes, and snippets.

ntaoo ntaoo

Block or report user

Report or block ntaoo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5661398f84be68c31ae77de6f347bc83
void main() {
var c = C();
c.i = 1;
class C {
int _i = 42;
int get i {
print('getter invoked');
ntaoo / blinking_text.dart
Last active Oct 17, 2019
Flutter Blinking Text without costly transition animation.
View blinking_text.dart
class BlinkingText extends StatefulWidget {
final String _target;
BlinkingTextState createState() => BlinkingTextState();
class BlinkingTextState extends State<BlinkingText> {
bool _show = true;
Timer _timer;
View dart_enum_toString
/// Dart Enum toString sample.
class Fruit {
static const apple = const Fruit("apple");
static const orange = const Fruit("orange");
static const grape = const Fruit("grape");
final String _name;
const Fruit(this._name);
ntaoo / 自作キーボード.md
Created May 6, 2019
View 自作キーボード.md





  1. デスクトップのコンピューターで数時間タイピングし続ける。主にプログラミングや文書作成、UIデザイン用途
  2. モバイルでもそれなりに多くの時間タイピングする。カフェ、出張先、カンファレンス、客先など。膝上でタイピングする環境を楽にセットアップしたい
View local_scroll.dart
import 'dart:async';
import 'dart:html';
import 'package:angular/angular.dart';
import 'package:async/async.dart' show StreamGroup;
/// TODO: Handle TouchMove, KeyCode.LEFT, KeyCode.RIGHT, Wheel X case.
selector: '[localScroll]',
ntaoo / angular_snippets.dart
Last active Jan 19, 2017
View angular_snippets.dart
/// AngularDart snippets
/// ================
/// Component Test with NgTestBed
@Tags(const ['codegen'])
import 'dart:html';
View blink_component.dart
ntaoo / html_smalltalk_diarect.txt
Created Jan 2, 2017
A HTML syntax in imaginary Smalltalk dialect.
View html_smalltalk_diarect.txt
# A HTML syntax in imaginary Smalltalk dialect.
<html lang="ja">
<p class="aClass" id="anId">
Text Literal
ntaoo / dci_role.dart
Last active Aug 15, 2016
DCI Role implementations.
View dci_role.dart
import 'dart:mirrors';
import 'package:test/test.dart';
// A Data class.
class D1 {
int fieldA;
final String fieldB;
D1(this.fieldA, this.fieldB);
void methodA() {
ntaoo / excerpt-app.yaml
Created May 26, 2016
An example of appengine's app.yaml handlers section for SPA Dart.
View excerpt-app.yaml
# Admin.
- url: /admin/.*
script: google.appengine.ext.admin.application
login: admin
# API.
- url: /api/.*
secure: always
You can’t perform that action at this time.