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