Skip to content

Instantly share code, notes, and snippets.

void main() {
var s = {1,2,3};
var e = {2,4,6};
var t = {4,5,6};
print(s.any(e.contains));
print(s.any(t.contains));
}
@mockturtl
mockturtl / keybase.md
Created January 7, 2017 23:10
keybase.md

Keybase proof

I hereby claim:

  • I am mockturtl on github.
  • I am mockturtl (https://keybase.io/mockturtl) on keybase.
  • I have a public key whose fingerprint is 3A2C 6C49 BB45 BB57 518F 23AB 280B AC25 493C 4666

To claim this, I am signing this object:

import 'dart:async';
Stopwatch mom = new Stopwatch();
Stopwatch dad = new Stopwatch();
Duration dur = new Duration(milliseconds: 400);
Future mymom() async {
if(mom.elapsed > dur){
print('mom cooks');
mom.reset();
@mockturtl
mockturtl / bluetooth.js.patch
Created July 1, 2013 17:47
`gnome-bluetooth` 3.8.1-1 breaks `gnome-shell` bluetooth applet
--- bluetooth.js.bak 2013-07-01 13:35:34.886134368 -0400
+++ bluetooth.js 2013-07-01 13:40:54.708592118 -0400
@@ -5,6 +5,7 @@
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const GnomeBluetoothApplet = imports.gi.GnomeBluetoothApplet;
+const GnomeBluetooth = imports.gi.GnomeBluetooth;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
@mockturtl
mockturtl / suggests
Created December 7, 2012 21:19
xfce4.10 experimental
Accessories
+ Clipman
+ Mousepad
+ Notes
+ galculator
- Orage Globaltime
+ Sensor Viewer
+ Xarchiver instead of Squeeze
- Task Manager (replaced by lxtask)
+ Xfce 4 Print Dialog