Skip to content

Instantly share code, notes, and snippets.

View jasonappah's full-sized avatar
:shipit:

Jason Antwi-Appah jasonappah

:shipit:
View GitHub Profile

Error Messages

> Task :app:compileReleaseKotlin FAILED
e: file:///.../android/app/src/main/java/.../MainActivity.kt:11:8 Unresolved reference: expo
e: file:///.../android/app/src/main/java/.../MainActivity.kt:33:12 Unresolved reference: ReactActivityDelegateWrapper
e: file:///.../android/app/src/main/java/.../MainApplication.kt:16:8 Unresolved reference: expo
e: file:///.../android/app/src/main/java/.../MainApplication.kt:17:8 Unresolved reference: expo
e: file:///.../android/app/src/main/java/.../MainApplication.kt:21:51 Unresolved reference: ReactNativeHostWrapper
e: file:///.../android/app/src/main/java/.../MainApplication.kt:41:13 Unresolved reference: ReactNativeHostWrapper
@hiepnp1990
hiepnp1990 / accessibility_notifications.swift
Created October 10, 2024 13:55
MacOS Accessibility API Notifications
//
// MacOS Accessibility Notifications
// Notice: this version doesn't take into account new apps after this code is executed
// Created by Phi Hiep Nguyen and AI on 2024-10-08.
//
import Cocoa
import Foundation
// AppObserver: Monitors and reports application activation events on macOS
@pesterhazy
pesterhazy / building-sync-systems.md
Last active September 13, 2025 20:57
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@kddnewton
kddnewton / natalie.svg
Created February 4, 2022 20:29
Natalie logo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sindresorhus
sindresorhus / esm-package.md
Last active September 15, 2025 15:33
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@cnp96
cnp96 / delta-sync.sh
Created November 3, 2020 18:55
Sync MongoDB instances
#!/bin/bash
# DB info
old_db="source_database_name"
# Connection info
uri="source_db_connection_string"
to_uri="target_db_connection_string"
# Storage info
@antonkomarev
antonkomarev / git-io-custom-url.md
Created September 15, 2020 08:50 — forked from dikiaap/git-io-custom-url.md
git.io custom URL

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
  • https://*.github.com/*
  • https://*.github.io
@hyperupcall
hyperupcall / change-master-branch-to-main.sh
Last active May 14, 2021 04:35
Cross-platform shell script to change the 'master' branch to 'main' for the local and remote repository
#!/bin/sh -eu
# code licensed under BSD 2-Clause "Simplified" License
# see `change-master-branch-to-main.sh --help` for usage
# see twitter thread for more details: https://twitter.com/EdwinKofler/status/1272729160620752898
site="github.com"
oldDefaultBranch="master"
newDefaultBranch="main"
@KATT
KATT / favourite-ts-tricks.md
Last active April 8, 2025 01:25
🧙‍♂️ Favourite non-obvious TS tricks

Record<string, x | undefined>

Represent maps

// rather than 
const map: {[ key: string ]: string} = {
  foo: 'bar',
}
@bmaupin
bmaupin / free-database-hosting.md
Last active September 11, 2025 02:33
Free database hosting