Skip to content

Instantly share code, notes, and snippets.

@yoiang
yoiang / LockUIWorldPosition.cs
Last active September 1, 2021 21:53
based on Unity Forum user @Adrenesis' lovely hack for Unity GUI Mask Component movement, more error handling and In-Editor support
using System.Collections;
using System.Threading;
using UnityEngine;
[RequireComponent(typeof(RectTransform))]
public class LockUIWorldPosition : MonoBehaviour
{
private RectTransform rectTransform;
private Vector3 originalWorldPosition;
@yoiang
yoiang / CSVDecoder.swift
Last active September 7, 2018 23:15 — forked from takasek/CSVDecoder.swift
Swift4のCodableに対応した、独自のDecoder(CSVDecoder)を実装してみよう ref: http://qiita.com/takasek/items/8bcb2f9169fbe2a0593e
//
// CSVDecoder.swift
//
// Created by takasek - https://github.com/takasek
//
import Foundation
//===----------------------------------------------------------------------===//
// CSV Decoder
@yoiang
yoiang / ReactJSONEditor.react.js
Last active June 29, 2020 06:04
React Wrapper around Jos de Jongs (@josdejong) Javascript JSON Editor, based on post by Hassan Khan (@hassankhan)
// React JSON Editor wrapper
// JSON Editor by Jos de Jong - https://github.com/josdejong/jsoneditor
// Based on post by Hassan Khan - https://github.com/josdejong/jsoneditor/issues/274#issuecomment-263986071
// Wrapper By Ian Grossberg - https://gist.github.com/yoiang/6f82874f4fd8fc1a37631dc9cad27172
import React, { Component, PropTypes } from 'react';
import JSONEditor from 'jsoneditor';
import cloneDeep from 'lodash.clonedeep';
import isEqual from 'lodash.isequal';
//
// OrdinalNumberFormatter.swift
// Tastify
//
// Created by Ian Grossberg on 10/1/15.
// Copyright © 2015 Noble Desktop. All rights reserved.
//
import Foundation
//
// TesseractOCR+PromiseKit.swift
//
// Created by Ian G on 5/1/15.
//
import PromiseKit
import TesseractOCR
extension G8Tesseract