Skip to content

Instantly share code, notes, and snippets.

(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
@yosun
yosun / gist:0cc814dcb5d8ee35398a548a8bc715b7
Created January 10, 2023 06:48
cocoapods install for m1 mac on mac 12.5
get rid of system brew - install 2.7.7 using rvm
https://www.engineyard.com/blog/how-to-install-ruby-on-a-mac-with-chruby-rbenv-or-rvm/
@yosun
yosun / CameraShotToPlane.cs
Created July 30, 2022 00:30
CameraShotToPlane.cs lets you create a hit plane (or debugPoint objects) based on camera viewport corners using CreatePlaneFromFourPoints
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraShotToPlane : MonoBehaviour
{
public bool debugMode = true;
public GameObject goDebugPoint;
public Camera cameraToRaycastFrom;
@yosun
yosun / Utils.cs
Created June 21, 2022 02:48
opencvunity dlib mods for IC
using AOT;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using UnityEngine;
namespace DlibFaceLandmarkDetector.UnityUtils
{
@yosun
yosun / largejson_notes.php
Last active December 12, 2021 10:33
large json file tools php specific
<?php ini_set('memory_limit','512M');set_time_limit(0);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once( 'vendor/autoload.php' );
// couldn't JsonMachines to work for poly_dump json (250M, with verbose objects)
//use \JsonMachine\JsonMachine;
//$string = file_get_contents("test.json");
query($lat: Float,$lon: Float) {
findLocation(lat: $lat,lon: $lon) {
city
name_string
}
}
{"lat":37.774929,"lon":-122.419418}
@yosun
yosun / chakrar.js
Created March 15, 2021 06:36
#SundayHackDay realityScript Snippet for ChakrAR
/* realityScript is a high-level language I created for rapidly prototyping AR apps in
high-pressure time constraint settings such as hackathons. Due to sleep-loss, I think
in stream of consciousness and so daisy-chaining is key (but I am also very oldskool and love jQuery)...*/
// 0) prepare an Object3D called "ChakraSet" that has the 7 chakras named "red", "orange,"
$("#ChakraSet").AddTags(this.each(),"Chakra");
// 1a) Define chakra symbol textures
var dicChakra = {};
dicChakra["red"]="muladhara.png";
@yosun
yosun / Julius Jones, were he White Like Me.md
Last active January 8, 2021 05:30
Julius Jones, were he White Like Me.

***Julius Jones, were he White Like Me. ***

Julius Jones sits at home, watching TV with his parents.
There’s the delicious smell of a homecooked meal.
The sound of laughter from a witty banter in the kitchen…
—And then the police break in.

They take him at age 19.
He was a football star, full scholarship.

@yosun
yosun / San Francisco in the time of Coronavirus.txt
Created January 7, 2021 20:43
San Francisco in the time of Coronavirus
This poetry is in the public domain.
San Francisco in the time of Coronavirus
That unobstructed view, looking down Market Street,
All the way to the Ferry Building,
@yosun
yosun / The New On-Demand Digital Reich.txt
Created January 7, 2021 19:57
The New On-Demand Digital Reich
Open Source Poetry is in the Public Domain.
The New On-Demand Digital Reich
What if you could post a tweet to summon a mob?
Share a page and have millions
re-share it, re-mix it,
regurgitate en mass.