Skip to content

Instantly share code, notes, and snippets.

View srndpty's full-sized avatar

Masaki Takano srndpty

View GitHub Profile
@shiguruikai
shiguruikai / 5chBrowser.js
Last active May 16, 2023 12:36
Tampermonkey用の簡易5chブラウザ(NG設定、サムネイル表示)
// ==UserScript==
// @name 5ch Browser
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @description 簡易5chブラウザ(NG設定、サムネイル表示)
// @author shiguruikai
// @match *://*.5ch.net/test/*
// @match *://*.5ch.sc/test/*
// @match *://*.bbspink.com/test/*
// @grant none
@hotwatermorning
hotwatermorning / set_tab_width_of_gitlab_diff_page.md
Created July 17, 2018 00:24
gitlabのdiff画面でタブ幅を4にする

Chromeの開発者ツールのElementタブで、*のスタイルに、以下の内容を追加

tab-size: 4 !important;
@melpon
melpon / wandbox-sponsors.md
Last active March 2, 2022 05:31
Wandboxのスポンサー募集(締め切りました)

スポンサーの募集は締め切りました。以後は GitHub Sponsors に移行する予定です。

どのような募集をしていたか知りたい場合は履歴を確認してください。

@pantone170145
pantone170145 / AdMobUtility.cs
Last active February 21, 2024 23:47
AdMob test device ID acquisition for Unity (Checked unity version: 5.2.3p2)
using UnityEngine;
using Cryptography = System.Security.Cryptography;
using System.Text;
#if UNITY_IOS
using UnityEngine.iOS;
#endif
/// <summary>
/// AdMobUtility
//ファイアーボール側のOnCollisionEnterの実装例
void OnCollisionEnter(Collision coll)
{
//すでにダメージを与えた後なら何もしない
if (isDisabled) return;
// 対象がダメージを受けることができるオブジェクトであるか調べる
var target = coll.gameObject.GetComponent<IDmageable>();
if ( target == null ) return;
@liortal53
liortal53 / DecoratorEditor.cs
Last active May 10, 2024 14:28
Extend Unity's built-in inspectors
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEditor;
using UnityEngine;
/// <summary>
/// A base class for creating editors that decorate Unity's built-in editor types.
/// </summary>
public abstract class DecoratorEditor : Editor
@YuukiTsuchida
YuukiTsuchida / ContentsScope.cs
Last active July 5, 2016 01:24
PackngTag Setting Window
using UnityEngine;
using UnityEditor;
namespace EditorExtension
{
namespace Scope
{
public class ContentsScope : GUI.Scope
{
public ContentsScope()
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
public static class Example
{
private const int WIDTH = 16;
static Example()
{
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
using UnityEditorInternal;
#endif
public class ReorderableListAttribute : PropertyAttribute {}
@st0326s
st0326s / AssetBundleLoad_Unity5.cs
Last active August 25, 2016 12:19
アセットバンドルの作り方・ロード方法の色々メモ(ver5.4.0f3・ver5.3.0f4・ver5.0.1f・ver4.6.2) ref: http://qiita.com/satotin/items/7a481c69230e9393401b
using UnityEngine;
using System.Collections;
public class AssetBundleLoad_Unity5 : MonoBehaviour {
public void CreateFileAssetBundleFileLoad()
{
// マニフェストが入っているファイルをパスで指定
string path = Application.streamingAssetsPath + "/" + "BuildOutPut" + "/";
// マニフェストのアセットバンドルを作成
// (マニフェストのアセットバンドルの中にアセットバンドル化したデータ群が入っている)
AssetBundle NoCompress = AssetBundle.CreateFromFile(path + "BuildOutPut");