- 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 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
| #!/bin/bash | |
| # Time to first token and decode speed through an OpenAI-compatible | |
| # streaming endpoint: the measurement behind our Qwen3.6-27B numbers. | |
| # Needs only what macOS ships: bash, curl, /usr/bin/perl. | |
| # | |
| # bash bench-openai.sh http://127.0.0.1:8090 m | |
| # | |
| # Alone: two prompt sizes (330 and 1350 words, about 500 and 1,900 | |
| # tokens), one warm-up and three runs each. Then 8 requests at once | |
| # (330 words each), two rounds. Every request starts with a unique line, |
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
| uv run vllm bench serve \ | |
| --backend openai-chat --base-url http://localhost:8000 \ | |
| --num-prompts 10 --request-rate 1 --endpoint /v1/chat/completions |
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
| 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 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:html'; | |
| void main() { | |
| wsAPI() | |
| .then((_) => print('Great success!')) | |
| .catchError((_) => print('Miserable failure')); | |
| } | |
| Future<void> wsAPI() async { | |
| try { |
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: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 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()); | |
| double kHeight = 100; | |
| double kWidth = 100; | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
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'; | |
| 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 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
| # 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 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
| 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 |
NewerOlder