Skip to content

Instantly share code, notes, and snippets.

View appcypher's full-sized avatar
:octocat:
What's up?

Stephen Akinyemi appcypher

:octocat:
What's up?
View GitHub Profile
@appcypher
appcypher / Cargo.toml
Created March 20, 2024 00:06 — forked from s3rius/Cargo.toml
PyO3-asyncio async streams
[package]
name = "itertest"
version = "0.1.0"
edition = "2021"
[dependencies]
futures = "0.3.28"
pyo3 = "0.19.2"
pyo3-asyncio = { version = "0.19.0", features = ["tokio-runtime"] }
tokio = { version = "1.32.0", features = ["sync"] }
@appcypher
appcypher / zql.md
Last active December 28, 2023 08:02
ZQL Ideas

Database Operations

Create

zql! {
    dbs::create(#app_db, {
        namespace: "bf91cccb-81ca-4ebe-9687-a79d7d3debb2"
    })
}
@appcypher
appcypher / Widgets.md
Last active October 7, 2023 11:14
Flutter Notes

Flutter Notes

Flex (Columns & Rows)

When you have a Flex widget, where the child with the maximum cross-axis size determines the cross-axis size of the rest.

If you try to use CrossAxisAlignment.stretch with a Flex whose parent is unbounded along the cross-axis, you will get an error.

To solve this, you should use Intrinsic* widgets. They do speculative pass on the Flex widget tree to determine the max size along the cross-axis and that becomes the constraint they pass to the Flex.

@appcypher
appcypher / mermaid.md
Created July 12, 2022 11:27
Mermaid Test in Github Markdown
  graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
@appcypher
appcypher / skip_fields.md
Created February 28, 2022 14:14
Skipping Fields in Rkyv

I'm trying t skip some fields with rkyv but I have managed to get it working yet. Frankly I don't want to think too much about it right now so I will be temporarily using bincode. I still believe in rkyv but it may not be ready yet for my use-case. I will keep it in my backlog to reimplement ser-de in rkyv.

use bytecheck::CheckBytes;
use llvm_sys::{
    target::{LLVM_InitializeNativeAsmPrinter, LLVM_InitializeNativeTarget},
    LLVMModule,
};
@appcypher
appcypher / Interop.md
Created February 14, 2022 12:11
Interop JS / Wasm Call

Calling a JS Function from WebAssembly

from host import js_call

js_call("print", "Hello world!")

@appcypher
appcypher / _.md
Last active February 3, 2022 11:57
Extensions vs Apps

Extensions and Apps have access to similar system resources.

The only difference is that Apps have access to more stuff than Extensions.

Apps can draw to the Canvas for example, while Extensions cannot.

However, as for creating side panels, adding widgets, etc. Extensions have access to those.

An App can have many Extensions and an Extension can be appropriate for many Apps.

@appcypher
appcypher / _.md
Last active July 10, 2022 21:33
More Permission Types

FS:

  • Open [ path ]
  • Create
  • Write
  • Read
  • Execute
  • Delete

HTTP(EVENTS):

@appcypher
appcypher / _.md
Last active January 16, 2022 22:22
Session State

Current Method

type SessionOpenTab = {
  id: string;
  userId: string;
  tabId: string;
  focus: boolean;
  order: number;
}
@appcypher
appcypher / idea.md
Last active July 9, 2022 20:52
Giga CLI Ideas

This is stale. Check Gitlab for up-to-date ideas

Getting started

giga init --headless

This generates the following file structure