Skip to content

Instantly share code, notes, and snippets.

View codebytere's full-sized avatar
:electron:
regenerating ninja files

Shelley Vohr codebytere

:electron:
regenerating ninja files
View GitHub Profile
const users = [
'@member_one',
'@member_two',
'@member_three',
'@member_four',
'@member_five'
];
const WEEKS = 52;
const start = new Date(2019, 11, 09);
@codebytere
codebytere / offmain-promise-res.mm
Last active December 15, 2019 21:53
a little example of what you'd need to to to create and resolve a promise off the main thread in Objective-C++
#include <napi.h>
Napi::Value NoOp(const Napi::CallbackInfo &info) {
return info.Env().Undefined();
}
Napi::Promise DoAMacOSNativeThing(const Napi::CallbackInfo &info) {
Napi::Env env = info.Env();
Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(env);
Napi::ThreadSafeFunction ts_fn =
diff --git a/lib/git.zsh b/lib/git.zsh
index 640561e..d7fafa1 100644
--- a/lib/git.zsh
+++ b/lib/git.zsh
@@ -17,7 +17,10 @@ function parse_git_dirty() {
if [[ "$DISABLE_UNTRACKED_FILES_DIRTY" == "true" ]]; then
FLAGS+='--untracked-files=no'
fi
- STATUS=$(command git status ${FLAGS} 2> /dev/null | tail -n1)
+ if [[ "$(pwd)" != *"/Users/codebytere/Developer/electron-gn/src"* &&

Keybase proof

I hereby claim:

  • I am codebytere on github.
  • I am codebytere (https://keybase.io/codebytere) on keybase.
  • I have a public key whose fingerprint is B9E2 F598 1AA6 E0CD 2816 0D9F F139 93A7 5599 653C

To claim this, I am signing this object: