Skip to content

Instantly share code, notes, and snippets.


Dave Herman dherman

View GitHub Profile

Directory layout

├── bin
│   ├── node
│   ├── npm ~> ../exe/launchscript
│   ├── npx ~> ../exe/launchscript
│   └── yarn
├── config.toml
dherman /
Last active Oct 4, 2018
alternative syntaxes for notion project-vs-user toolchain commands



  • notion use node 8
  • notion use ember-cli 3.4
  • notion use yarn 1.10
  • notion install heroku 7
  • notion install node 10
  • notion install npm default
pub trait IntoJs<'a, V: Value> {
fn into_js<C: Context<'a>>(self, cx: &mut C) -> Handle<'a, V>;
impl<'a, V: Value> IntoJs<'a, V> for Handle<'a, V> {
fn into_js<C: Context<'a>>(self, _: &mut C) -> Handle<'a, V> {
dherman / flatness.txt
Last active Jul 9, 2018
Different candidate decompositions for the Neon library's modules
View flatness.txt
Context, CallContext, FunctionContext, MethodContext, ComputeContext, ExecuteContext, ModuleContext, TaskContext
VmResult, JsResult, JsResultExt, Throw
Borrow, BorrowMut, Ref, RefMut, LoanError
JsArray, JsArrayBuffer, JsBoolean, JsBuffer, JsError, JsFunction, JsNull, JsNumber, JsObject, JsString, JsUndefined, JsValue
StringOverflow, StringResult
dherman /
Last active Jun 26, 2018
Notion strategy for Windows

Goal: Per-User Installation Model

  • install Notion executables in user path
  • install Notion files in user profile
  • install Notion registry settings in HKCU

Goal: Per-Console Env Mutation

  • Notion command is a pair of .cmd and .ps1 wrapper scripts
  • cmd.exe sees the .cmd script
dherman /
Last active Jun 16, 2018
SOLVED: I missed a conditional

Why doesn't this throw an exception?

SOLVED: It checks the length and returns without throwing in NEW_STRING

  } else if (length > i::String::kMaxLength) {                             \
    result = MaybeLocal<String>();                                         \

ASSERTION: DCHECK((isolate)-&gt;has_pending_exception())

View cargo-debug.log
dherman-mn1:cargo-edit dherman$ RUST_LOG=cargo=trace cargo install cargo-edit --git
Updating git repository ``
TRACE 2018-06-07T15:22:15Z: cargo::sources::git::source: updating git source `GitRemote { url: "" }`
DEBUG 2018-06-07T15:22:15Z: cargo::sources::git::utils: skipping gc as there's only 2 pack files
DEBUG 2018-06-07T15:22:15Z: cargo::sources::git::utils: doing a fetch for
DEBUG 2018-06-07T15:22:15Z: cargo::sources::git::utils: initiating fetch of refs/heads/*:refs/heads/* from
INFO 2018-06-07T15:22:15Z: cargo::sources::git::utils: update submodules for: "/Users/dherman/.cargo/git/checkouts/cargo-edit-d8e23e4da1869f61/0684637/"
TRACE 2018-06-07T15:22:15Z: cargo::ops::cargo_read_manifest: looking for root package: /Users/dherman/.cargo/git/checkouts/cargo-edit-d8e23e4da1869f61/0684637, source_id=