Skip to content

Instantly share code, notes, and snippets.

View mishushakov's full-sized avatar

Mish Ushakov mishushakov

View GitHub Profile
@mishushakov
mishushakov / build.rs
Created February 21, 2024 21:24
Hermes bindgen
use std::env;
use std::path::PathBuf;
fn main() {
let hermes_src_dir = "./hermes";
let hermes_build_dir = "./release_debug";
// Tell cargo to invalidate the built crate whenever the wrapper changes
println!("cargo:rerun-if-changed=wrapper.h");
JavaScript Web-Server Performance Benchmarks
Bun = 126095
Bun + GraphQL.js = 65106
Bun + GraphQL.js + JIT = -
Bun + Yoga = 33020
Bun + Yoga + JIT = -
Node + uWS = 144939
Node + uWS + GraphQL.js + JIT = 74502
@mishushakov
mishushakov / client.tsx
Last active June 5, 2024 04:40
A React hook for calling Next.js Server Actions from client components
'use client'
import { test } from './server'
import { useServerAction } from './hook'
export default function Home() {
const { data, loading, error, execute: testAction } = useServerAction(test)
if (loading) return <div>Loading...</div>
if (error) return <div>Error: {error.message}</div>
@mishushakov
mishushakov / README.md
Last active March 6, 2022 14:12
PineTime PulseTime (Metronome)

PulseTime for wasp-os

Problem

  • Soundbrenner Smartwatch is expensive (197 eur)
  • Existing Apple Watch apps either don’t fulfil the requirement of having haptic vibration or offer unreasonable subscription-based business model
  • Publishing new Apple Watch app would cost me 100/year + take effort learning their programming language and frameworks

Pine64 PineTime comes to rescue