Skip to content

Instantly share code, notes, and snippets.

View muzudho's full-sized avatar

むずでょ muzudho

View GitHub Profile
@muzudho
muzudho / file0.txt
Last active January 27, 2019 12:22
Unityで状態遷移を組むときに使うアニメーター・コントローラーを作成するC#スクリプトのソースコード ref: http://qiita.com/muzudho1/items/d2a76d79b8a6b8437897
using UnityEditor;
using UnityEditor.Animations;
using UnityEngine;
/// <summary>
/// 開発中に使うメニュー
/// </summary>
public class ToolMenu {
#region アニメーター・コントローラー編集
@muzudho
muzudho / file0.txt
Last active July 14, 2018 00:03
C# DynamicJsonの使い方 (1)JSON→クラス (2)JSON→連想配列 ref: https://qiita.com/muzudho1/items/3831ddd06aa3542b9b56
using Codeplex.Data; // DynamicJson はこれ。
using CsharpDynamicJsonBestPractice.Model; // 自分で好きに作れだぜ。
using System.Diagnostics; // Trace とかこれ。
using System.IO; // ファイル読み込みはこれ。
@muzudho
muzudho / file0.php
Last active December 22, 2017 15:34
PHPでMySQLにデータを突っ込もうぜ ref: https://qiita.com/muzudho1/items/deea9da28b0f5b0c3695
<?php
// 参考: http://qiita.com/yasumodev/items/bd2ba476f31804d527d3
// mysqliクラスのオブジェクトを作成
$mysqli = new mysqli('localhost', '★DBユーザー名', '★パスワード', '★DB名');
if ($mysqli->connect_error) {
echo $mysqli->connect_error;
exit();
} else {
$mysqli->set_charset("utf8");
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/myButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
@muzudho
muzudho / file0.txt
Last active August 1, 2017 13:49
ゲーム開発を受注しようぜ<その1> 開発環境の準備 ref: http://qiita.com/muzudho1/items/d5d30619bf7f4102f7f1
@startuml
きふわらべ -> お父ん : 起きろ☆!
きふわらべ <- お父ん : 起きてるぜ☆!
@enduml
@muzudho
muzudho / file0.txt
Last active June 30, 2017 18:48
Unity 接地判定の線とか、見えない境界とか、見たくなったときは LineRendererで画面に線を引く ref: http://qiita.com/muzudho1/items/e6b02553f8186d80fb53
/// <summary>
/// 表示区画の枠
/// </summary>
[MenuItem("Tool/RefreshLineFrame")]
static void RefreshLineFrame()
{
// 枠
lineFrame = GameObject.Find("LineFrame");
transform_lineFrame = lineFrame.GetComponent<Transform>();
LineRenderer lineRenderer = lineFrame.GetComponent<LineRenderer>();
@muzudho
muzudho / file0.txt
Last active June 23, 2017 11:28
UnityでJSONを読み書きしようぜ(特にDictionaryで) ref: http://qiita.com/muzudho1/items/26bda7d5e3c8dfac304c
using UnityEngine;
[System.Serializable]
public class PlayerInfo
{
public string name;
public int lives;
public float health;
public static PlayerInfo CreateFromJSON(string jsonString)
@muzudho
muzudho / file0.txt
Last active June 21, 2017 04:36
Laravel の独習をこれから始めてみようぜ ref: http://qiita.com/muzudho1/items/524400c6d53ffbf4c0eb
<?php
@muzudho
muzudho / file0.txt
Last active June 20, 2017 09:06
Webアプリ案件を受注しようぜ<その4> ref: http://qiita.com/muzudho1/items/f9042c3677208e1b30ee
vi /etc/php.ini
@muzudho
muzudho / file0.txt
Last active June 20, 2017 05:51
Webアプリ案件を受注しようぜ<その3> ref: http://qiita.com/muzudho1/items/2e382c9ec03ede31fec4
firewall-cmd --list-all