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
| const centerColumnWidthFactor = 0.4; | |
| // Prioritizes center with adjustable width factor | |
| // Fills column left, then right | |
| // Then splits right column vertically | |
| // Then splits left column vertically | |
| function layout() { | |
| return { | |
| name: "Ultrawide Simple", | |
| getFrameAssignments: (windows, screenFrame) => { |
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
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title> | |
| Lumbra Hardwoods Inc. – 122 River Road, Milo, Me 04463 207-943-7415 | |
| </title> | |
| <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,700|Merriweather"> | |
| <style> | |
| @media only screen and (max-width: 700px) { |
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
| function flutter-watch(){ | |
| local PID_FILE="/tmp/tf$$.pid" | |
| tmux new-session \;\ | |
| send-keys "flutter run --pid-file=$PID_FILE" Enter \;\ | |
| split-window -v \;\ | |
| send-keys "npx -y nodemon -e dart -x \"cat $PID_FILE | xargs kill -s USR1\"" Enter \;\ | |
| resize-pane -y 5 -t 1 \;\ | |
| select-pane -t 0 \; | |
| rm $PID_FILE; | |
| } |
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:io'; | |
| import 'package:mqtt_client/mqtt_client.dart'; | |
| import 'package:mqtt_client/mqtt_server_client.dart'; | |
| Future<void> main(List<String> arguments) async { | |
| final client = MqttServerClient('mosquitto.local', ''); | |
| client.setProtocolV311(); | |
| client.keepAlivePeriod = 30; | |
| await client.connect(); |
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
| *.lock | |
| android | |
| ios | |
| linux | |
| macos | |
| web | |
| windows |
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
| brew "helix" | |
| brew "lf" | |
| brew "lazygit" |
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:flutter/rendering.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); |
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 assert from "assert"; | |
| main(); | |
| function main(): void { | |
| const parsedMessage = parseEmotes( | |
| "Yo Kappas Kappa Kappa yo", | |
| { | |
| "25": ["10-15", "16-21"], | |
| }, |
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:provider/provider.dart'; | |
| import 'package:tuple/tuple.dart'; | |
| import 'package:uuid/uuid.dart'; | |
| class LocalOverlayScope extends StatefulWidget { | |
| const LocalOverlayScope({Key? key, required this.child}) : super(key: key); | |
| final Widget child; |
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
| void main() { | |
| print(isSupertype<BaseClass, SuperClass>()); // true | |
| } | |
| class SuperClass extends BaseClass {} | |
| abstract class BaseClass {} | |
| bool isSupertype<Subtype, Supertype>() => <Supertype>[] is List<Subtype>; |