Skip to content

Instantly share code, notes, and snippets.

@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
@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");