Skip to content

Instantly share code, notes, and snippets.

yosun

  • San Francisco
View GitHub Profile
@yosun
yosun / coco.names
Created Apr 15, 2019
coco.names from tinyyolo
View coco.names
person
bicycle
car
motorbike
aeroplane
bus
train
truck
boat
traffic light
View UI2.cs
// Jan 9 version includes rect
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public static class UI2 {
[System.Serializable]
@yosun
yosun / yosunartist2018.md
Last active Nov 27, 2018
yosun artist bio 2018
View yosunartist2018.md

I. Yosun Chang is an augmented reality artist whose art is often mistaken as innovative startups that have won various awards from Grand Prize (twice) at TechCrunch Disrupt Hackathon to First Place at Microsoft Build Hackathon and multiple First Places at Intel Perceptual Computing Challenge and more.

She views the digital realm as her main reality — in 2008, she took things within and beyond through “a year of seclusion”, where she locked herself up in a room for an entire year, with no outside contact except for the virtual world of Second Life, to be able to be maximally productive — scripting and crafting 3D models at the speed of thought to build and run virtual Shakespearean theatres, virtual bunnies and museums. These days, she dreams about fantastical products enhanced by emerging technologies — her medium includes hackneyed mobile devices to every single HMD out there as well as most depth sensors. She's known as the creator of AReality3D Permute.xyz, an AR/VR/ML startup studio comprising many of h

View gist:f5b60ddf43e40b7f43c22036fb4186e4
USDA nutrition db gives the following for a banana:
"Protein" "0.4"
"Total lipid (fat)" "0.1"
"Carbohydrate, by difference" "15.3"
"Ash" "0.3"
"Energy" "56.0"
"Water" "84.0"
"Energy" "236.0"
"Sugars, total" "0.38"
@yosun
yosun / FaceDetectionWebCamTextureArco.cs
Last active Jun 10, 2018
OpenCVForUnity + Arcolib
View FaceDetectionWebCamTextureArco.cs
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
#if UNITY_5_3 || UNITY_5_3_OR_NEWER
using UnityEngine.SceneManagement;
#endif
using OpenCVForUnity;
using Vexpot.Arcolib.Integration;
@yosun
yosun / WWWPost.cs
Created Dec 29, 2017
WWWPost using UnityEngine.Networking UnityWebRequest.Post
View WWWPost.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class WWWPost : MonoBehaviour {
public void Post(string url,WWWForm form){
StartCoroutine(PostCoroutine(url,form));
}
@yosun
yosun / PostProcessor.cs
Created Dec 23, 2017
PostProcessor to include photo lib permissions
View PostProcessor.cs
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
using System;
using System.IO;
//=============================================================================
// This PostProcessor does all annoying Xcode steps automatically for us
//=============================================================================
@yosun
yosun / SaveToAlbum.cs
Created Dec 23, 2017
SaveToAlbum.cs saves gif given path
View SaveToAlbum.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
using System.Collections;
using System.Runtime.InteropServices;
public class SaveToAlbum : MonoBehaviour {
#if !UNITY_EDITOR
@yosun
yosun / iOSScreenshotGif.m
Created Dec 23, 2017
saveGifToGallery - call from unity using extern or see SaveToAlbum.cs
View iOSScreenshotGif.m
#import <Foundation/Foundation.h>
#import <Photos/Photos.h>
int saveGifToGallery(const char *path0){
NSString *path = [NSString stringWithUTF8String:path0];
NSData *data = [NSData dataWithContentsOfFile:path];
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
PHAssetResourceCreationOptions *options = [[PHAssetResourceCreationOptions alloc] init];
View gist:2ddc6ae26e965bdff447c15d21ae5fdd
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: cu_cat2_animator More Features
serializedVersion: 5
m_AnimatorParameters:
You can’t perform that action at this time.