Skip to content

Instantly share code, notes, and snippets.

Avatar

Kristen McWilliam Merrit

View GitHub Profile
@Merrit
Merrit / main.dart
Created Jun 1, 2021
Focus traversal testing
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@Merrit
Merrit / provider_route_example.dart
Created Apr 20, 2021
Provider new route example
View provider_route_example.dart
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
void main() {
runApp(App());
}
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
View gist:6676b5d47a3c5bdb5eb7d83dee3beddc
Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety
Building Windows application...
PS C:\Users\Merritt\Dev\myapp> flutter run -v -d windows
[ +76 ms] executing: [C:\tools\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +54 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] f8cd24de95b16b5a1ce6ebc0716154271fbf6252
[ ] executing: [C:\tools\flutter/] git tag --points-at f8cd24de95b16b5a1ce6ebc0716154271fbf6252
View steam-native.sh
#!/bin/sh
# Launch Steam with steam-native & workaround for power suppression bug
# https://github.com/ValveSoftware/steam-for-linux/issues/5607
xdg-dbus-proxy "$DBUS_SESSION_BUS_ADDRESS" "$XDG_RUNTIME_DIR/steam-bus-proxy" --filter --call="org.freedesktop.DBus.*=*" --call="org.freedesktop.IBus.*=*" --call="org.freedesktop.portal.*=*" --call="com.feralinteractive.GameMode.*=*" --call="com.canonical.*=*" --broadcast="*=*" --call="org.kde.*=*" --call="org.gtk.*=*" steam-native
View vkBasalt.conf
#effects is a colon seperated list of effect to use
#e.g.: effects = fxaa:cas
#effects will be run in order from left to right
#one effect can be run multiple times e.g. smaa:smaa:cas
#cas - Contrast Adaptive Sharpening
#fxaa - Fast Approximate Anti-Aliasing
#smaa - Enhanced Subpixel Morphological Antialiasing
#deband - Effects against banding artefacts
#lut - color LookUp Table
effects = colourfulness
View rockPaperScissors.js
// Rock, Paper, Scissors - Challenge
let userChoice = 'Rock';
function computerChoice() {
let number = Math.round((Math.random() * 3) + 1);
if (number < 1) {
computerChoice();