Skip to content

Instantly share code, notes, and snippets.

Avatar

Kristen McWilliam Merrit

  • Canada
View GitHub Profile
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();