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 / gist:1be49dad42b1d008e5207492096e612a
Last active November 15, 2017 10:34
therooms alexasjukk
'use strict';
const Alexa = require('alexa-sdk');
exports.handler = (event, context) => {
// TODO implement
const alexa = Alexa.handler(event, context);
alexa.appId = undefined;// "amzn1.ask.skill.c86d5355-97ac-4e3b-954e-5913e99c7e40";
// To enable string internationalization (i18n) features, set a resources object.
@yosun
yosun / gist:2ddc6ae26e965bdff447c15d21ae5fdd
Created December 8, 2017 15:01
CU_CAT EXTENDED ANIMATOR
%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:
@yosun
yosun / iOSScreenshotGif.m
Created December 23, 2017 10:55
saveGifToGallery - call from unity using extern or see SaveToAlbum.cs
#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];
@yosun
yosun / SaveToAlbum.cs
Created December 23, 2017 10:56
SaveToAlbum.cs saves gif given path
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 / PostProcessor.cs
Created December 23, 2017 11:25
PostProcessor to include photo lib permissions
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 / WWWPost.cs
Created December 29, 2017 09:46
WWWPost using UnityEngine.Networking UnityWebRequest.Post
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 / FaceDetectionWebCamTextureArco.cs
Last active June 10, 2018 05:38
OpenCVForUnity + Arcolib
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 / gist:f5b60ddf43e40b7f43c22036fb4186e4
Created October 23, 2018 06:12
usda nutrition db banana
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 / yosunartist2018.md
Last active November 27, 2018 05:30
yosun artist bio 2018

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

// Jan 9 version includes rect
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public static class UI2 {
[System.Serializable]