- Chow mein noodles (prepare according to package instructions)
- Leftover grilled steak, thinly sliced against the grain
- Broccoli, cut into small florets
- Champignon mushrooms, sliced
- Bell peppers, sliced
- Green onions, chopped (reserve some green parts for garnish)
- 2-3 cloves garlic, minced
This file contains 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
use select::document::Document; | |
use select::predicate::Class; | |
use serde_json::json; | |
use worker::*; | |
mod utils; | |
struct ParseError(String); | |
impl std::fmt::Display for ParseError { | |
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
This file contains 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:html'; | |
void main() { | |
wsAPI() | |
.then((_) => print('Great success!')) | |
.catchError((_) => print('Miserable failure')); | |
} | |
Future<void> wsAPI() async { | |
try { |
This file contains 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:html'; | |
void main() async { | |
try { | |
final socket = await wsConnect('wss://127.0.0.1:7654'); | |
print('${socket.readyState}'); | |
} catch (e) {print(e);} | |
} |
This file contains 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()); | |
double kHeight = 100; | |
double kWidth = 100; | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
This file contains 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'; | |
class MyKeys { | |
static final GlobalKey navKey = GlobalKey<NavigatorState>(debugLabel: 'navKey'); | |
} | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. |
This file contains 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
# MacOS only | |
# This script modifies one VS Code file. After that the VS Code will complain that the installation is damaged. | |
# You can dismiss the warning or install an extension that recalculates the checksums for the files | |
# The script creates a backup for the CSS file it modifies | |
perl -i.bak -pe 's/\.monaco-workbench.mac.monaco-font-aliasing-none{-webkit-font-smoothing:none/.monaco-workbench.mac.monaco-font-aliasing-none{-webkit-font-smoothing:antialiased/g' \ | |
/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.css |
This file contains 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
augroup fl_dart | |
autocmd! | |
autocmd Syntax dart highlight default link dartFlutterClasses Type | |
autocmd Syntax dart highlight default link dartFlutterTypedefs Typedef | |
autocmd Syntax dart highlight default link dartFlutterExceptions Exception | |
autocmd Syntax dart highlight default link dartFlutterConstants Constant | |
autocmd Syntax dart highlight default link dartFlutterEnums Type | |
autocmd Syntax dart highlight default link dartFlutterMixins Type | |
autocmd Syntax dart syntax keyword dartFlutterMixins | |
\ AnimationEagerListenerMixin AnimationLazyListenerMixin |
This file contains 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
#!/bin/bash | |
DATE=gdate | |
set -euo pipefail | |
if [[ "${1:-}" == "" || "${2:-}" == "" ]]; then | |
echo "Usage: $0 <start date> <directory with source> [optional cloc args]" | |
exit 1 | |
fi |
This file contains 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
newtype A = A { | |
properties :: StrMap B | |
} | |
newtype B = B { | |
first :: String, | |
last :: String, | |
ssn :: String | |
} |
NewerOlder