Skip to content

Instantly share code, notes, and snippets.

@Kogarasi
Kogarasi / KResistance.cs
Last active March 19, 2020 13:34
IPアドレスから住んでいる地域を確認するサンプル for Unity
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class KResistance: MonoBehaviour {
private const string apiUrl = "https://ipinfo.io/json";
[System.Serializable]
@Kogarasi
Kogarasi / Privacy Policy
Last active December 13, 2019 19:10
ギャザラーアシスト Privacy Policy
### ギャザラーアシスト for FFXIV / Gatherer Assist for FFXIV
### Privacy Policy
端末から取得される識別情報はアプリ内広告(Admob)及び、ユーザートラッキングに利用されます。
ただし、一個人を特定できるような情報は上記に含まれません。
----
Identification information obtained from the terminal is used for in-app advertisement (Admob) and user tracking.
However, information that can identify an individual is not included in the above.
@Kogarasi
Kogarasi / GradientView.swift
Created December 5, 2018 13:28
GradientView in Swift
import UIKit
@IBDesignable class GradientView: UIView {
@IBInspectable var topColor: UIColor = UIColor.white
@IBInspectable var bottomColor: UIColor = UIColor.red
override class var layerClass: AnyClass {
return CAGradientLayer.self
}
@Kogarasi
Kogarasi / gist:e98ccc1a8cf77ee0b6cfe83d3683b699
Created November 23, 2018 12:02
Treasure Hunt for FFXIV. Privacy Policy
### とれはん for FFXIV / Treasure Hunt for FFXIV
### Privacy Policy
端末から取得される識別情報はアプリ内広告(Admob)及び、ユーザートラッキングに利用されます。
ただし、一個人を特定できるような情報は上記に含まれません。
----
Identification information obtained from the terminal is used for in-app advertisement (Admob) and user tracking.
However, information that can identify an individual is not included in the above.
### 天気予報アプリ for FFXIV / Weather Forecast for FFXIV
### Privacy Policy
端末から取得される識別情報はアプリ内広告(Admob)及び、ユーザートラッキングに利用されます。
ただし、一個人を特定できるような情報は上記に含まれません。
----
Identification information obtained from the terminal is used for in-app advertisement (Admob) and user tracking.
However, information that can identify an individual is not included in the above.

ハードウェア

  • Mac(厳しいならWindowsでWSLしてもよいよい)

Macがあるとやりたいことはだいたい出来る。

絶対

  • HTML
  • CSS
@Kogarasi
Kogarasi / main.cpp
Last active June 27, 2018 03:07
make_c_function
#include <functional>
#include <windows.>
template <typename F> struct c_function {
static void called( HMIDIIN hMidiIn, UINT wMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2 ){
destFunction( hMidiIn, wMsg, dwInstance, dwParam1, dwParam2 );
}
static F destFunction;
@Kogarasi
Kogarasi / HItCheck
Created May 21, 2017 06:56
円と線分の交点算出
// A,Bは線分、Cは円の中心
auto PointA = Vector2();
auto PointB = Vector2();
auto PointC = Vector2();
auto VecAtoB = Vector2( PointB - PointA );
auto VecAtoC = Vector2( PointC - PointA );
auto VecBtoC = Vector2( PointC - PointB );
// 角度の算出
@Kogarasi
Kogarasi / SampleController.cs
Created May 16, 2016 11:13
uGUIs Sample No.1
using UnityEngine;
using UnityEngine.UI;
using System;
using System.Collections;
public class SampleController : uGUIs.Controller<SampleController> {
public Canvas canvas;
Button button; // GameObject "button"を作る必要があります
void Start () {
@Kogarasi
Kogarasi / Kotlin
Last active February 4, 2016 03:13
class Foo( arg: String ){}
class Bar( val member : String = "hello world" ) : Foo( member ){
}