Skip to content

Instantly share code, notes, and snippets.

View hzoo's full-sized avatar
🌱
outside

Henry hzoo

🌱
outside
View GitHub Profile
@kevincennis
kevincennis / v8.md
Last active May 6, 2024 05:25
V8 Installation and d8 shell usage

Installing V8 on a Mac

Prerequisites

  • Install Xcode (Avaliable on the Mac App Store)
  • Install Xcode Command Line Tools (Preferences > Downloads)
  • Install depot_tools
    • $ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
    • $ nano ~/.zshrc
    • Add path=('/path/to/depot_tools' $path)
@hzoo
hzoo / unexpected.md
Created August 9, 2017 12:48
SyntaxError: unexpected token

Tips on debugging "SyntaxError: unexpected token"

This is almost impossible to write but might as well come up with some possibilities real quick.

It's an actual syntax error (typo, or just invalid syntax)!

Example:

function a() {
@dominictarr
dominictarr / readme.md
Created November 26, 2018 22:39
statement on event-stream compromise

Hey everyone - this is not just a one off thing, there are likely to be many other modules in your dependency trees that are now a burden to their authors. I didn't create this code for altruistic motivations, I created it for fun. I was learning, and learning is fun. I gave it away because it was easy to do so, and because sharing helps learning too. I think most of the small modules on npm were created for reasons like this. However, that was a long time ago. I've since moved on from this module and moved on from that thing too and in the process of moving on from that as well. I've written way better modules than this, the internet just hasn't fully caught up.

@broros

otherwise why would he hand over a popular package to a stranger?

If it's not fun anymore, you get literally nothing from maintaining a popular package.

One time, I was working as a dishwasher in a restu

@fhinkel
fhinkel / d8.md
Last active November 7, 2019 20:05
V8 Installation and d8 shell usage

Installing V8 on a Mac

Install depot_tools

$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ export PATH=`pwd`/depot_tools:"$PATH"

Build v8

$ fetch v8