Skip to content

Instantly share code, notes, and snippets.

View todashuta's full-sized avatar
👋
(  ̄ ♢  ̄ )

todashuta todashuta

👋
(  ̄ ♢  ̄ )
View GitHub Profile
@voluntas
voluntas / webrtc_unity.rst
Last active September 20, 2022 05:42
WebRTC x Unity コトハジメ

WebRTC x Unity コトハジメ

日時:2022-09-16
作:時雨堂
バージョン:2022.3.0

この資料は 2022 年 10月 25 日(火)・26日(水) に行われる SYNC 2022 の発表資料です。

@greymd
greymd / teip2.md
Last active May 30, 2023 16:10
teip v2.0 でヤバい機能がついた件

teip v2.0 でヤバい機能がついた件

teip コマンド に関するお話

まとめ

  1. teip v2.0 に新機能:マッチオフロード機能
  • テープの穴をあける行の指定に外部コマンドが使えるようになった
  1. あるコマンドの抽出範囲のみを、範囲外は残したまま、別のコマンドで編集可能になる
@greymd
greymd / sudo新一.md
Last active July 20, 2026 08:00
sudo新一

 オレは高校生シェル芸人 sudo 新一。幼馴染で同級生の more 利蘭と遊園地に遊びに行って、黒ずくめの男の怪しげな rm -rf / 現場を目撃した。端末をみるのに夢中になっていた俺は、背後から近づいてきたもう1人の --no-preserve-root オプションに気づかなかった。 俺はその男に毒薬を飲まされ、目が覚めたら・・・ OS のプリインストールから除かれてしまっていた!

sudo がまだ $PATH に残っていると奴らにバレたら、また命を狙われ、他のコマンドにも危害が及ぶ』

 上田博士の助言で正体を隠すことにした俺は、 which に名前を聞かれて、とっさに『gnuplot』と名乗り、奴らの情報をつかむために、父親がシェル芸人をやっている蘭の $HOME に転がり込んだ。ところが、このおっちゃん・・・とんだヘボシェル芸人で、見かねた俺はおっちゃんになりかわり、持ち前の権限昇格能力で、次々と難タスクを解決してきた。おかげで、おっちゃんは今や世間に名を知られた名エンジニア、俺はといえばシェル芸 bot のおもちゃに逆戻り。クラスメートの convertojichattextimg にお絵かきコマンドと誤解され少年ワンライナーお絵かき団を結成させられる始末。

 ではここで、博士が作ってくれたメカを紹介しよう。最初は時計型麻酔 kill 。ふたについた照準器にあわせてエンターを押せば、麻酔シグナルが飛び出し、プロセスを瞬時に sleep させることができる。 次に、蝶ネクタイ型 banner 。裏についているダイヤルを調整すれば、ありとあらゆる大きさのメッセージを標準出力できる。必殺のアイテムなら fork 力増強シューズ。電気と磁力で足を刺激し、 :(){ :|:& };: でプロセステーブ

@ksasao
ksasao / PhotoData.cs
Last active September 14, 2021 01:56
HEIF (.heic), JPEG などに含まれる EXIF 情報などから緯度経度・時刻・姿勢(Unity準拠)を読み込む C# サンプル。 https://twitter.com/ksasao/status/1426522324623265800
using MetadataExtractor;
using MetadataExtractor.Formats.Exif;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
declare const DecompressionStream: any;
declare const CompressionStream: any;
const encoder = new TextEncoder();
const decoder = new TextDecoder();
async function compress(str: string): Promise<ArrayBuffer> {
const cs = new CompressionStream("gzip");
const buf = encoder.encode(str);
const stream = new Response(buf).body!.pipeThrough(cs);
return new Response(stream as any).arrayBuffer();
@nikogoli
nikogoli / 0_.md
Last active October 23, 2022 10:00
Blender のパネル上でアニメーションする

Blender (のパネル上)で PUIPUI する

  1. リンク先のアドオンファイルをダウンロードして、インストールする
  2. プリファレンス → アドオン → Testing タブ で有効化する
  3. 詳細を開き、ボタンを押す

説明とか

@tohka
tohka / README.md
Last active March 12, 2025 11:54
lem ファイルを GeoTIFF に変換するスクリプト

lem2gtif.py

概要

lem ファイルを GeoTIFF に変換するスクリプトです。

使い方

@Dylancyclone
Dylancyclone / clearCustomSplitNormalsData.py
Last active September 19, 2025 14:19
Blender script to clear all Custom Split Normal Data from selected objects. Simply select all the objects and run the script. This is useful when importing a bunch of objects used in game development, such as the output generated from https://github.com/Dylancyclone/VMF2OBJ/
import bpy
selection = bpy.context.selected_objects
for o in selection:
try:
bpy.context.view_layer.objects.active = o
bpy.ops.mesh.customdata_custom_splitnormals_clear()
except:
print("Object has no custom split normals: " + o.name + ", skipping")
@jubicode
jubicode / select_by_color.py
Last active May 31, 2025 19:27 — forked from tamask/select_by_color.py
Select By Color (Blender)
import bpy
from mathutils import Color
bl_info = {
'name': 'Select By Color',
'author': 'Tamas Kemenczy, updated for 2.8 by Piotr Zgodziński',
'version': (0, 2),
'blender': (2, 80, 3),
'location': 'View3D > Specials > Select By Color',
'description': 'Select all faces with the same vertex color of the selected face',