Skip to content

Instantly share code, notes, and snippets.

@brennanMKE
brennanMKE / EventEmitter.swift
Last active March 19, 2025 05:42
React Native Event Emitter for RCTEventEmitter in Objective-C and Swift
class EventEmitter
/// Shared Instance.
public static var sharedInstance = EventEmitter()
// ReactNativeEventEmitter is instantiated by React Native with the bridge.
private static var eventEmitter: ReactNativeEventEmitter!
private init() {}
@DaniAffCH
DaniAffCH / GSoC_24_Final_Report.md
Last active March 19, 2025 05:39
GSoC 24 Final Report

OpenCV Block-wise quantization - Google Summer Of Code 2024

My name is Daniele Affinita, and this report documents the work I completed during the Google Summer of Code 2024 for OpenCV, under the mentorship of Yuantao Feng.

TL;DR

Integrated Blockwise Quantization into OpenCV's DNN module, focusing on compressing model size for deployment on memory-constrained devices. Developed a tool to quantize models blockwise, achieving a 2-4x reduction in model size. Evaluated the performance, showing that blockwise quantized models retain accuracy closer to the original compared to standard int8 quantization.

Project Summary

@jwbee
jwbee / jq.md
Last active March 19, 2025 05:38
Make Ubuntu packages 90% faster by rebuilding them

Make Ubuntu packages 90% faster by rebuilding them

TL;DR

You can take the same source code package that Ubuntu uses to build jq, compile it again, and realize 90% better performance.

Setting

I use jq for processing GeoJSON files and other open data offered in JSON format. Today I am working with a 500MB GeoJSON file that contains the Alameda County Assessor's parcel map. I want to run a query that prints the city for every parcel worth more than a threshold amount. The program is

@a1ip
a1ip / youtube-video-thumbnails-sizes-and-formats.md
Created April 7, 2020 18:53
YouTube video thumbnails sizes and formats

Note: YouTube is serving thumbnails from 2 servers:

  • //img.youtube.com
  • //i.ytimg.com

Examples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.

  • Player Background Thumbnail (480x360):

@DBC-Juanma
DBC-Juanma / example_prd.md
Created February 12, 2025 04:27
PRD Template for LLM + Cursor

B2B Interior Design Showroom Platform

Timeframe: September - October 2024
Tech Stack:

  • Frontend: Next.js 15, Tailwind CSS, shadcn
  • Backend: Supabase
  • Hosting: Vercel
  • Utilities: Supabase Auth, Vercel Analytics

Phase 1 - Core Landing Page Features (2-3 weeks)

@Srfigie
Srfigie / .gitattributes
Created February 2, 2020 14:30 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@wiledal
wiledal / animate-advanced.js
Last active March 19, 2025 05:26
Tiny GSAP-style CSS animation library
/*
Tiny, smart, single-method animation library for CSS animations - TweenMax-style.
Returns a Promise that resolves when the transition has ended.
Usage:
Single element:
AnimationService.animate(element, time, to)
AnimationService.animate(element, time, from, to)
Multiple elements with stagger:
@Dexdot
Dexdot / gsap-easings.js
Created July 31, 2019 10:10
GSAP Easing => CSS Easings
ease: "cubic-bezier(1, 0, 0.3, 1)"
easeOut: "cubic-bezier(0.165, 0.84, 0.44, 1)"
easeIn: "cubic-bezier(0.755, 0.05, 0.855, 0.06)"
default: "cubic-bezier(0.25, 0.1, 0.25, 1)"
easeInOut2: "cubic-bezier(0.455, 0.030, 0.515, 0.955)"
easePower2: "cubic-bezier(0.77, 0, 0.175, 1)"
easePower3: "cubic-bezier(0.645, 0.045, 0.355, 1)"
easePower4: "cubic-bezier(0.770, 0.000, 0.175, 1)"
easeSine: "cubic-bezier(0.445, 0.05, 0.55, 0.95)"
easeInPower2: "cubic-bezier(0.550, 0.085, 0.680, 0.530)"
@notch1p
notch1p / abstractStory1.md
Created October 9, 2022 10:22
Allen Zhang on his way to visit his mother.

张小龙探亲记

微博@麦芽原浆

声明 本故事纯属虚构,如有雷同,还有这种好事?

(一)

张小龙离开家出差了一段时间,回家的时候发现家门口特别热闹,但走近一看大家却都哭丧着脸。张小龙觉得很奇怪,排开人群想进到家里去看看到底发生了什么,却被哥哥拦了下来。