Skip to content

Instantly share code, notes, and snippets.

View yosun's full-sized avatar
:octocat:
cal.permute.xyz

yosun

:octocat:
cal.permute.xyz
View GitHub Profile

I found out on June 27, 2024 that my best friend Chieu passed away.

What are the odds of a CH-named Vietnamese refugee born in Lugano (in a rare Italian-speaking canton) of Switzerland who would later migrate to Houston - meeting a (norcal) valley girl mad-scientist-entrepreneur born in Taiwan with a Turkish name of Yosun - at Google I/O of all conferences on June 26, 2014?

Being more of the intrepid indie type at this point, my friends were starving artists and hungry hackers - not Googlers or suits. But albeit having made it to noogler status, Chieu would be poor for a bit longer. Shortly after, Chieu began her 9 month long waiting period as Google struggled to figure out how to place such undefinable brilliance.

Chieu followed me to her first hackathon, where I made fun of her for being the "useless girlfriend at a hackathon, watching anime in a corner." Somehow I convinced her to learn (something perhaps a bit too hackneyed practical for her obscure puzzling likes) a frontend javascript UI framework

@yosun
yosun / yc_love.py
Last active July 1, 2024 08:33
Another Ycombinator and LOVE - in reminiscing an old blog post from my late friend Chieu Nguyen (the scheme and postscript versions are also @ ) https://minimonimania.wordpress.com/2008/12/03/yajima-combinator/
# (printing “LOVE” an infinite number of times using named recursion in Python)
def FOREVER(x):
print x,
FOREVER(x)
FOREVER("LOVE")
#(the Y combinator in Python)
(lambda f: \
(lambda x: f(lambda y: (x(x))(y))) \
@yosun
yosun / TextToTextMeshPro.cs
Last active June 27, 2024 00:15
Unity editor script converts Unity UI Text to TMP TextMeshPro text - tested in 2022.3.33f1 for VisionOS Polyspatial proj - with font mod https://forum.unity.com/threads/replacing-text-with-textmesh-pro.515594/#post-8339880
using UnityEngine;
using UnityEditor;
using UnityEngine.UI;
using TMPro;
public class TextToTextMeshPro : Editor
{
public class TextMeshProSettings
{
public bool Enabled;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using PolySpatial.Samples;
public class ModelProcessorPolyspatial : MonoBehaviour
{
public Vector3 rotationAxis = new Vector3(0,42,0);
@yosun
yosun / bw-face-landmarker-on-white-bg-for-sajjad.markdown
Created June 15, 2024 07:40
bw face landmarker on white bg for Sajjad
@yosun
yosun / HeightmapGeneratorCullBlack.cs
Last active June 12, 2024 20:41
input a depth mask, and get a mesh shaped based on that. includes Black version and Transparent version
using UnityEngine;
using System.Collections.Generic; // Added for the dictionary
public class HeightmapGeneratorCullBlack : MonoBehaviour
{
public Texture2D heightMap;
public Material material;
public Vector3 size = new Vector3(200, 30, 200);
void Start()
@yosun
yosun / readme.md
Created November 12, 2023 13:58
installing node on cpanel

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

source ~/.bashrc

nvm install 14

nvm use 14

@yosun
yosun / _sdxl.resizer.php
Created October 4, 2023 04:55
For example, if you have a ratio 1 image and upload it as 512x512 instead of 1024x1024 you get: https://replicate.com/p/463ayu3bhufo5twvla4byvpz3m instead of https://replicate.com/p/u2vrsv3buuvzifh3pautxcrdom
<?php
class SDXLNumerologyElement {
public $ratio;
public $width;
public $height;
}
class SDXLResizer {
public static $theNumerologyElements = array(
@yosun
yosun / nws3-irl-in-sf.txt
Created May 24, 2023 04:40 — forked from seemcat/nws3-irl-in-sf.txt
buildspace n&w s3 - irl in sf
Kyle K.
Kei H.
kahron s.
Alan H.
Ashita A.
Shahir A.
Moin B.
Mustafa T.
arib k.
Omar K.
(Old 2016 profile:) I build award-winning AR + AI apps and software platforms - solo. Here are some "startups" that I built:
faced.io FaceShop and FaceMaskDesigner https://www.youtube.com/watch?v=-0DaehzzNLg
ArtformAR https://www.youtube.com/watch?v=zklZxlarVjY
SnapShop https://www.youtube.com/watch?v=JvaVsuH6vj4
SnapGlass.es https://www.youtube.com/watch?v=HAvNJs7sf7A
HoloYummy https://www.youtube.com/watch?v=VbLkQg1_EB4
PlatoAR https://www.youtube.com/watch?v=V2I1gFwG-kM