Skip to content

Instantly share code, notes, and snippets.

View hinaloe's full-sized avatar
🛏️
🛌

Hinaloe hinaloe

🛏️
🛌
View GitHub Profile
@hinaloe
hinaloe / Capture.cs
Created April 22, 2021 20:32
Capture transparent screen on unity editor.
using System;
using System.Collections;
using System.IO;
using UnityEngine;
namespace Net.Hinaloe.ScreenCapture
{
public class Capture : MonoBehaviour
{
// Start is called before the first frame update
@hinaloe
hinaloe / UnivFeliCa.md
Created October 27, 2019 02:48 — forked from oboenikui/UnivFeliCa.md
大学生協FeliCaの仕様

WHAT IS THIS

大学生協のFeliCa,及び諸大学の学生証一体型FeliCaの仕様
レスポンスについては,特に表記のない限り東北大学のもの (学生証一体型ではない)
断りのない限りコードはビッグエンディアンで通信する (下記のドキュメントに合わせた)
記号と区別するため,アルファベットの大文字表記は記号,小文字表記は16進表記とする

FeliCa自体の仕様については,Sony公式のドキュメントを参考に

System Code

@hinaloe
hinaloe / サルでもわかるPlayersOnlyMirrorのレイヤー設定.md
Last active October 10, 2021 22:47
VRCPlayersOnlyMirrorで黒背景が他のミラーに映り込まないようにするやつ

もっといい方法があったらコメントへどうぞ

0. What's this doc

acertainbluecat/VRCPlayersOnlyMirrorの背景がほかのミラーに映り込まないようにする手順について。 READMEに書かれてることの焼き直し。

1. 専用のレイヤーを追加する

  1. 適当なGameObjectのレイヤー選択からAdd Layer...、またはその上のLayersからEdit Layersを押してレイヤーの編集画面を開く
@hinaloe
hinaloe / README.md
Created August 3, 2020 17:20
VRChatで自分にフレリクを送るブックマークレット

VRChat web上で(ログイン状態で)このスクリプトをブックマークレットとして実行する(あるいはコンソールに流し込む)と自分宛てにフレンドリクエストが送信されます1

でも意味があるかは知らない……

Footnotes

  1. VRChat webではAPIはクエリにAPIキーと認証キーをつけてリクエストしていますが,Cookieに同じ値が入るようになっているので省略できます.なんでやねん.

@hinaloe
hinaloe / .js
Created December 27, 2017 10:28
(function(d){const v=d.querySelector('video[preload="metadata"]'),c=d.createElement('canvas');c.width=v.videoWidth;c.height=v.videoHeight;c.getContext('2d').drawImage(v,0,0);c.toBlob(blob=>{const url = URL.createObjectURL(blob),a=d.createElement('a');a.href=url;a.download=d.querySelector('.jk_u').textContent;a.click()})})(document)
jQuery(function($){
var height = $('#container').outerHeight();
height = height + 'px';
$('#main').css('height',height);
$('#sidebar').css('height',height);
// sidebarプルダウンメニュー
$("ul.children").hide();
@hinaloe
hinaloe / Twitter Cramming.user.js
Last active September 28, 2017 05:35 — forked from if1live/Twitter Cramming.user.js
Force enable cramming (280 character tweets) on Twitter. NOTE: Stops working when you switch pages, refresh to fix. https://twitter.com/Prof9/status/912859110776950784
// ==UserScript==
// @name Twitter Cramming
// @description Force enable cramming (280 character tweets) on Twitter
// @author Prof. 9
// @version 0.1
// @match https://twitter.com/*
// @run-at document-idle
// @namespace prof9.twittercramming
// ==/UserScript==
<?php
namespace NAE\ShowArticleMap\Admin;
use NAE\ShowArticleMap\ShowArticleMap;
use NAE\ShowArticleMap\SingleTon;
class OptionsPage extends SingleTon {
protected $options = [];
@hinaloe
hinaloe / .htaccess
Last active September 4, 2017 10:26
拡張子を省略してPHPアプリを呼び出す。 ref: http://qiita.com/kimama1997/items/af3d76110e6c67a3d96f
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php