Skip to content

Instantly share code, notes, and snippets.

@shunirr
shunirr / criminal_jc.md
Last active February 26, 2024 05:51
女子中学生チケット詐欺事件

criminal_jc

using UnityEngine;
using System.Collections;
public class GyroScene : MonoBehaviour {
public Transform target;
private Quaternion initialRotation;
private Quaternion gyroInitialRotation;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class FPS : MonoBehaviour {
Text text;
int frameCount;
float prevTime;
@tsubaki
tsubaki / SpriteEnumGenerator.cs
Last active September 27, 2018 09:23
UnityのResourcesに配置したテクスチャのAtlasが持つスプライトを列挙型にする
using System.CodeDom.Compiler;
using System.IO;
using System.Collections.Generic;
public class SpriteEnumGenerator : AssetPostprocessor {
readonly static string exportDirectry = "Assets/Enum/";
readonly static string generateCodeNamespace = "ResourcesEnum";
static public void OnPostprocessAllAssets(
@susisu
susisu / say.md
Last active January 22, 2020 16:07
非実用 say コマンド

非実用 say コマンド

おはようございます. @susisu2413 です. この記事は OUCC アドベントカレンダー 2014 1日目の記事です. が, 誰も登録されていなかったので急遽書くことになりました. しかたがないので適当な記事でハードルを下げつつお茶を濁そうと思います.

say コマンド

say コマンドをご存知でしょうか. Mac に標準で入っている音声読み上げコマンドです. 最近, レポート作成の疲れから say コマンドで遊んでみたら思いの外面白かったので記事にしてみました.

@takashicompany
takashicompany / TwitterAndLinePost.cs
Created June 18, 2014 18:03
Unityでお手軽にTwitter・Line投稿をつくるサンプル
// WebブラウザのTwitter投稿画面を開く
Application.OpenURL("http://twitter.com/intent/tweet?text=" + WWW.EscapeURL("テキスト #hashtag"));
// Lineに投稿
Application.OpenURL("http://line.naver.jp/R/msg/text/?" + WWW.EscapeURL("テキスト", System.Text.Encoding.UTF8));
@cloned
cloned / WWWClient.cs
Last active October 12, 2017 16:45
A handy class to use WWW and WWWForm on Unity.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace WWWKit
{
/// <summary>
/// A handy class to use WWW class and WWWForm class.
///
/// Features:
@shinyaohira
shinyaohira / App States and Multitasking.md
Last active October 5, 2023 07:57
アプリケーションの状態とマルチタスキング

全体的に簡略化し、必要と思われる部分を抜粋しました。

  • Not running

    アプリは起動されていないか、実行されていたけれどもシステムによって終了されています。

  • Inactive

@neolitec
neolitec / Color.js
Created November 7, 2011 10:19
Javascript Color Class
var Color = function() {
this.r = this.g = this.b = 0;
this.h = this.s = this.l = 0;
this.a = 1;
};
/** RGB */
Color.prototype.cssRGB = function() {
return "rgb("+Math.round(255*this.r)+","+Math.round(255*this.g)+","+Math.round(255*this.b)+")";
};
Color.prototype.cssRGBA = function() {