Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
//Y-Combinator | |
final Y = (f) => | |
((x) => f((y) => x(x)(y))) | |
((x) => f((y) => x(x)(y))); | |
//booleans | |
final TRUE = (x) => (y) => x; | |
final FALSE = (x) => (y) => y; | |
final cond = (b) => b; |
alias gdbnew='/usr/local/Cellar/gdb/7.6/bin/gdb' |
// Solve Every Sudoku Puzzle in Dart | |
// A translation of: http://norvig.com/sudopy.shtml | |
// Translated by Brian Slesinsky | |
// See http://norvig.com/sudoku.html | |
// Throughout this program we have: | |
// r is a row, e.g. 'A' | |
// c is a column, e.g. '3' | |
// s is a square, e.g. 'A3' |
library heatequation; | |
import 'dart:html'; | |
import 'dart:async'; | |
import 'dart:collection'; | |
CanvasElement canvas; | |
CanvasRenderingContext2D context; | |
List<List<Tile>> world; | |
Timer running; |
library astar; | |
import 'dart:html'; | |
//import 'dart:async'; | |
import 'dart:collection'; | |
CanvasElement canvas; | |
CanvasRenderingContext2D context; | |
List<List<int>> world; | |
//Timer running; |
library floodfill; | |
import 'dart:html'; | |
//import 'dart:async'; | |
import 'dart:collection'; | |
CanvasElement canvas; | |
CanvasRenderingContext2D context; | |
List<List<int>> world; | |
//Timer running; |
#full source: https://github.com/dartist/sudoku_solver/blob/master/benchmarks/sudoku.py | |
def cross(A, B): | |
"Cross product of elements in A and elements in B." | |
return [a+b for a in A for b in B] | |
digits = '123456789' | |
rows = 'ABCDEFGHI' | |
cols = digits | |
squares = cross(rows, cols) |
library streams; | |
import 'dart:html'; | |
import 'dart:async'; | |
import 'dart:uri'; | |
import 'dart:json' as JSON; | |
import 'package:js/js.dart' as js; | |
main() { | |
var inputs = |
Updated: July 2nd (XE7)
Ron Amadeo of Android Police did a review of these experiments: http://www.androidpolice.com/2013/05/24/google-glasss-hidden-labs-features-ok-glass-everywhere-web-browsing-video-stabilization-and-more-video/
Google Glass has a series of Labs experiments that can be enabled on engineering or userdebug builds. Using APKTool, I've removed that restriction and now they can be enabled with root access.
To start, for example, the SOUND_SEARCH lab, type in a root shell