Skip to content

Instantly share code, notes, and snippets.

View GZGavinZhao's full-sized avatar
☯️
See chart in profile for indications of availability.

Gavin Zhao GZGavinZhao

☯️
See chart in profile for indications of availability.
  • 22:47 (UTC -04:00)
View GitHub Profile
@GZGavinZhao
GZGavinZhao / server.dart
Last active August 25, 2021 08:21
AngularDart Server-Side Rendering Script with Puppeteer
// Put it in your bin folder, build the site, and run `dart run bin/server.dart`
// Go to http://localhost:8080 to see the result! o(^▽^)o
//
// Remember to open in an incognito or guest window, or the browser might use
// the cache instead of letting the server render it (yes FireFox that's you).
import 'dart:io';
// Remember to add these dependencies!
import 'package:mime/mime.dart';
@GZGavinZhao
GZGavinZhao / cliexample.v
Last active August 9, 2021 23:53
Blueprint of what an example cli in V should be.
module main
import cli, os
fn main(
mut app := cli.Command{
name: 'pizzahut'
description: 'Cli for ordering pizza from Pizza Hut'
// execute: // Without specifying the `execute` parameter, it will just output the usage message
commands: [