I hereby claim:
- I am kevmoo on github.
- I am kevmoo (https://keybase.io/kevmoo) on keybase.
- I have a public key whose fingerprint is 9355 AC2E 028E 65FC D971 3458 829C 1FBA D2A1 9840
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env dart | |
| import 'dart:async'; | |
| import 'dart:convert'; | |
| import 'dart:io'; | |
| const _splitter = const LineSplitter(); | |
| const _waitDuration = const Duration(milliseconds: 250); | |
| const _green = '\u001b[32m'; |
| # Inspired by https://robots.thoughtbot.com/use-git-hooks-to-automate-annoying-tasks | |
| dart_files=$(git diff --cached --name-only --diff-filter=ACM | grep '.dart$') | |
| [ -z "$dart_files" ] && exit 0 | |
| function checkfmt() { | |
| unformatted=$(dartfmt -n $dart_files) | |
| [ -z "$unformatted" ] && return 0 |
| import 'dart:collection'; | |
| void main() { | |
| var list = new WatchList([1,2,3,4,5]); | |
| var mapped = list.where((x) => x.isEven).map((x) => x*2); | |
| // What is printed here? | |
| print(list.accessCount); |
| library mixin_library; | |
| import 'dart:json' as json; | |
| class MixinClass { | |
| String bar() => json.stringify({'a':1}); | |
| } |
| #import('dart:html'); | |
| #import('dart:isolate'); | |
| SendPort sender; | |
| ReceivePort receiver; | |
| main(){ | |
| CanvasElement canvas = document.query("#content"); | |
| canvas.on.mouseMove.add(mouse); | |
| canvas.on.mouseOut.add(mouse); |
| # So this is completely gone now | |
| # Moved to my own brew recipes collection at | |
| # https://github.com/kevmoo/homebrew-kevmoo | |
| # Run this: | |
| # brew tap kevmoo/kevmoo | |
| # and you'll be good to go! |
| #!/usr/bin/env ruby | |
| # Take a file_name | |
| # If there are any "bad" lines: | |
| # => Print out the file name | |
| # => Print out the offending line numbers | |
| # => Overwrite the file with "good" lines | |
| # You might want to make sure *everything* is in source control first | |
| # It's "good form" to have mass white-space clean-up be a single check-in, too | |
| def clean_whitespace(file_name) |