This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0�P *�H�� | |
��P0�P10 + 0�@� *�H�� | |
��@��@�<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AppIDName</key> | |
<string>XC com example app</string> | |
<key>ApplicationIdentifierPrefix</key> | |
<array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# your team id located in the developer portal | |
TEAMID="replace" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:listenos/session.dart'; | |
class SessionsScreen extends StatelessWidget { | |
SessionsScreen({Key? key}) : super(key: key); | |
final session = Session(author: "Ben Butterworth", createdAt: DateTime.now(), id: "flutter-festival", questions: [ | |
Question(id: "some question", answers: [], createdAt: DateTime.now(), author: "Human being", text: "Some question" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
showAppDialog(BuildContext context) { | |
print("Showing app dialog"); | |
showDialog(context: context, | |
builder: (context) { | |
return AlertDialog( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter_test/flutter_test.dart'; | |
import 'package:flutter/material.dart'; | |
const buttonKey = Key("button"); | |
const alertDialogKey = Key("alertDialog"); | |
class MyApp extends StatelessWidget { | |
showAppDialog(BuildContext context) async { | |
print("Showing app dialog"); | |
await showDialog( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "dart:math"; | |
import "package:vector_math/vector_math.dart"; | |
class Orientation { | |
// radians | |
final double yaw; | |
final double pitch; | |
final double roll; | |
Orientation({required this.yaw, required this.pitch, required this.roll}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Doesn't actually use the PageView, because it doesn't current work. | |
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:http/http.dart' as Http; | |
String callbackOne() => "hello"; | |
Future<String> callbackTwo() async => (await Future.delayed(Duration(seconds: 1),() => "This is a sentence")); | |
Future<int> getLengthOfResult2(String Function() callback) async { | |
return callback().length; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
String callbackOne() => "hello"; | |
Future<String> callbackTwo() async => (await Future.delayed(Duration(seconds: 1),() => "This is a sentence")); | |
Future<int> getLengthOfResult(FutureOr<String> Function() callback) async { | |
// I can await on callbackOne, even though it returns a String. | |
final result = await callback(); | |
return result.length; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# Aliases adapted from https://snyk.io/blog/10-git-aliases-for-faster-and-productive-git-workflow/ and http://blog.kfish.org/2010/04/git-lola.html | |
[alias] | |
# Logging | |
s = status | |
l = log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30 | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
new = log origin/main@{1}..origin/main@{0} |