Better HN
topnewbestaskshowjobs
Log inSign up

olvrng

14 karma · joined Dec 27, 2020 (5y ago) · 27 submissions

olivernguyen.io
Submissions

comment 1y ago · link · parent

I have implemented 2 packages in Go for parsing json:

1. https://github.com/ezpkg/iter.json: last year, using go iterator, the core parsing code [1a] is around 200 lines

1a. https://github.com/ezpkg/ezpkg/blob/main/iter.json/parser.go

2. https://github.com/iOliverNguyen/ujson: 4 years ago, using callback, around 400 lines

comment 1y ago · link · parent

Create a bash script `run`:

    #!/bin/bash
    set -eo pipefail

    run-hello() {
        echo "Hello, World!"
    }

    # -------- this is the magic ------- #
    source "scripts/_cli.sh"
    
And source a simple script `_cli.sh`:

    #!/bin/bash
    set -eo pipefail

    show-help(){
        items=()
        while IFS='' read -r line; do items+=("$line"); done < \
            <(compgen -A "function" | grep "run-" | sed "s/run-//")
        printf -v items "\t%s\n" "${items[@]}"

        usage="USAGE: $(basename "$0") CMD [ARGUMENTS]
      CMD:\n$items"
        printf "$usage"
    }

    name=$1
    case "$name" in
        "" | "-h" | "--help" | "help")
            show-help
            ;;
        *)
            shift
            if compgen -A "function" | grep "run-$name" >/dev/null ; then
                run-"${name}" "$@"
            else
                echo "ERROR: run-$name not found."
                exit 123
            fi
            ;;
    esac

comment 1y ago · link · parent

My favorite command runner setup is just a simple bash script and .envrc

I can put my commands in a run file, which source a simple bash script, and use it like:

    run do-foo
    run build-bar
You can even `run help` to list all available commands.

The setup is explained here: https://olivernguyen.io/w/direnv.run/

comment 3y ago · link · parent

When we are browsing internet, read some articles, or searching for information, it will be very helpful to have ChatGPT as an assistant. This extension opens ChatGPT as a sidebar, wherever you need.

5.

Show HN: Chrome extension to have ChatGPT as a sidebar(github.com ↗)

3 points · by olvrng · 3y ago · 1 comment

6.

Show HN: Play ball drop game on my Twitter banner(twitter.com ↗)

1 points · by olvrng · 4y ago · discuss

7.

Play ball drop game on my Twitter banner(twitter.com ↗)

2 points · by olvrng · 4y ago · discuss

8.

Play ball-drop game on my Twitter banner(twitter.com ↗)

7 points · by olvrng · 4y ago · discuss

9.

Show HN: OneSidebar – browser extension for navigating GitHub(onesidebar.com ↗)

5 points · by olvrng · 4y ago · discuss

10.

Create an emoji ball-drop game with Matter.js(olivernguyen.io ↗)

1 points · by olvrng · 4y ago · discuss

11.

Show HN: I created an emoji ball-drop game and put it on my Twitter banner(twitter.com ↗)

1 points · by olvrng · 4y ago · 1 comment

12.

Timeline of the Far Future(en.wikipedia.org ↗)

7 points · by olvrng · 4y ago · 1 comment

comment 4y ago · link · parent

It's always included in Google Lens (and Nokia 3.4 uses Android One). You can open Google Lens and point to the QR code.

14.

Validate zero enum value in Protobuf 3(olvrng.github.io ↗)

1 points · by olvrng · 4y ago · discuss

15.

Eventually Consistency and Cache(olvrng.github.io ↗)

1 points · by olvrng · 4y ago · discuss

16.

Front End development without node_modules using Snowpack(hackernoon.com ↗)

1 points · by olvrng · 5y ago · discuss

comment 5y ago · link · parent

Location: UTC+7

Remote: Yes

Willing to relocate: Yes

Techlogies: Golang, Javascript/Node.JS, React, Vue, Svelte, Postgres, Docker, k8s, Sketch

Résumé: https://olvrng.github.io/cv/olvrng.2021.pdf

Email: olvr.ng@gmail.com

Blog: https://olvrng.github.io

I'm Oliver. A backend/full-stack developer and startup founder with 7 years in software development. A generalist with mixed of skills, including code, product design, technical writing.

I work mostly with Golang and JavaScript as a backend guy, built a system from ground up on k8s/GKE, released a few open source libraries, wrote some articles. My experience includes backend, web (also unity, game, java in the past).

Some of my recent pet projects are octox.io (a browser extension for navigating GitHub) [1] and ujson (a minimal json parser in Go) [2].

I'm looking for remote job, backend or full-stack.

[1] http://octox.io

[2] https://hackernoon.com/json-a-minimal-json-parser-and-transf...

comment 5y ago · link · parent

This already happened in academic:

https://slate.com/technology/2021/01/dead-professor-teaching...

19.

Show HN: ujson – A minimal, stream JSON parser in Go(olvrng.github.io ↗)

1 points · by olvrng · 5y ago · discuss

20.

Front-end development without node_modules using snowpack(hackernoon.com ↗)

1 points · by olvrng · 5y ago · discuss

21.

Create App – your tool for starting a new webpack or Parcel project(createapp.dev ↗)

3 points · by olvrng · 5y ago · discuss

22.

When to Use Function Types in Go(kinbiko.com ↗)

1 points · by olvrng · 5y ago · discuss

23.

Designing a URL Shortener in Deno(hackernoon.com ↗)

2 points · by olvrng · 5y ago · discuss