Skip to content

Instantly share code, notes, and snippets.

const circle1Style = useAnimatedStyle(() => ({
opacity: interpolate(
likeIconAnimValue.value,
[0, 0.1, 0.95, 1],
[0, 0.4, 0.4, 0],
'clamp',
),
transform: [
{
scale: interpolate(
curl 'https://morel.us-east.host.bsky.network/xrpc/com.atproto.repo.applyWrites' \
-H 'accept: */*' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'authorization: Bearer YOUR_BEARER_TOKEN' \
-H 'content-type: application/json' \
--data-raw '{"repo":"did:plc:vjug55kidv6sye7ykr5faxxn","writes":[{"$type":"com.atproto.repo.applyWrites#create","collection":"app.bsky.graph.listitem","value":{"$type":"app.bsky.graph.listitem","subject":"did:plc:sn4fbwu3tqbkcdrus5by2iog","list":"at://did:plc:vjug55kidv6sye7ykr5faxxn/app.bsky.graph.list/3l23lwvpcdg2f","createdAt":"2024-08-20T06:08:47.781Z"}},{"$type":"com.atproto.repo.applyWrites#create","collection":"app.bsky.graph.listitem","value":{"$type":"app.bsky.graph.listitem","subject":"did:plc:24dkse33y4lvebxcdc4r2gia","list":"at://did:plc:vjug55kidv6sye7ykr5faxxn/app.bsky.graph.list/3l23lwvpcdg2f","createdAt":"2024-08-20T06:08:47.781Z"}},{"$type":"com.atproto.repo.applyWrites#create","collection":"app.bsky.graph.listitem","value":{"$type":"app.bsky.graph.listitem","s
This file has been truncated, but you can view the full file.
This file was generated with the generate-license-file npm package!
https://www.npmjs.com/package/generate-license-file
The following npm packages may be included in this product:
- @stdlib/assert-has-tostringtag-support@0.0.9
- @stdlib/assert-is-object-like@0.0.8
- @stdlib/assert-is-regexp-string@0.0.9
- @stdlib/assert-is-string@0.0.8
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x20)
* frame #0: 0x0000000104ce10ec Bluesky`std::__1::weak_ptr<facebook::react::EventDispatcher const>::lock(this=0x0000000000000018) const at shared_ptr.h:1871:20
frame #1: 0x0000000104ce0e70 Bluesky`facebook::react::EventEmitter::dispatchEvent(this=0x0000000000000000, type="playerStateChange", payload=std::__1::shared_ptr<const facebook::react::EventPayload>::element_type @ 0x0000600001968798 strong=1 weak=1, priority=AsynchronousBatched, category=Unspecified) const at EventEmitter.cpp:99:43
frame #2: 0x0000000104ce0b00 Bluesky`facebook::react::EventEmitter::dispatchEvent(this=0x0000000000000000, type="", payloadFactory= Lambda in File ExpoFabricViewObjC.mm at Line 154, priority=AsynchronousBatched, category=Unspecified) const at EventEmitter.cpp:85:3
frame #3: 0x00000001044be700 Bluesky`expo::ExpoViewEventEmitter::dispatch(this=0x0000000000000000, eventName="playerStateChange", payloadFactor
2024-06-06 08:52:12.678 21901-21992 .blueskyweb.app xyz.blueskyweb.app E No implementation found for com.facebook.jni.HybridData expo.modules.kotlin.jni.JavaScriptModuleObject.initHybrid() (tried Java_expo_modules_kotlin_jni_JavaScriptModuleObject_initHybrid and Java_expo_modules_kotlin_jni_JavaScriptModuleObject_initHybrid__) - is the library loaded, e.g. System.loadLibrary?
2024-06-06 08:52:12.681 21901-21992 ReactNativeJS xyz.blueskyweb.app E Error: Exception in HostObject::get for prop 'NativeUnimoduleProxy': java.lang.UnsatisfiedLinkError: No implementation found for com.facebook.jni.HybridData expo.modules.kotlin.jni.JavaScriptModuleObject.initHybrid() (tried Java_expo_modules_kotlin_jni_JavaScriptModuleObject_initHybrid and Java_expo_modules_kotlin_jni_JavaScriptModuleObject_initHybrid__) - is the library loaded, e.g. System.loadLibrary?, js engine: hermes
2024-06-06 08:52:12.683 21901-21992 ReactNativeJS xyz.blueskyweb.app
@haileyok
haileyok / ViewController.swift
Created May 4, 2024 05:22
UIImageView VisionKit Image Analyzer Crash Repro
import UIKit
import VisionKit
class ViewController: UIViewController {
var imageView: UIImageView?
@available(iOS 16.0, macCatalyst 17.0, *)
static let imageAnalyzer = ImageAnalyzer.isSupported ? ImageAnalyzer() : nil
override func viewDidLoad() {
@haileyok
haileyok / blah.js
Last active April 4, 2024 22:32
quote the post you create
import {BskyAgent} from '@atproto/api'
import {dataToCborBlock, TID} from '@atproto/common'
import {lexToIpld} from '@atproto/lexicon'
import {cborToLex} from '@atproto/repo'
const agent = new BskyAgent({
service: 'https://pds.haileyok.com',
})
const doIt = async () => {
@haileyok
haileyok / bean-labeler.ts
Last active March 16, 2024 20:09
Bean Auto Labeler
import {
AppBskyEmbedImages,
AppBskyFeedPost,
BskyAgent,
} from '@atproto/api'
import * as dotenv from 'dotenv'
import {ComAtprotoSyncSubscribeRepos, subscribeRepos, SubscribeReposMessage} from 'atproto-firehose'
import Anthropic from '@anthropic-ai/sdk'
import axios from 'axios'
{
"version": 0,
"bundler": "metro",
"clientVersion": "1.72",
"fileMetadata": {
"ios": {
"bundle": "bundles/e66baa6dc08188f2648433eac3e8820a.bundle",
"assets": [
"assets/7d40544b395c5949f4646f5e150fe020.png",
"assets/cdd04e13d4ec83ff0cd13ec8dabdc341.png",
Example: https://github.com/expo/custom-expo-updates-server/blob/468b7182abe2c888a5d605e902cbca37eaf42bc1/expo-updates-server/pages/api/manifest.ts#L131
id: Unique string, uuid.v4() maybe
createdAt: unix timestamp of the deployment
runtimeVersion: passed in through a header (or url param, whatever works) when sending from github action to server
launchAsset: metadata.json -> fileMetadata -> ios/android -> bundle. This should probably only be the file name,
not the entire path.
assets: metadata.json -> fileMetadata -> ios/android -> assets. The distinction between platforms seems important,
since not all assets are used on either platform.
metadata: empty object