Skip to content

Instantly share code, notes, and snippets.

View nyanshiba's full-sized avatar
🎃
in the kotatsu

nyanshiba

🎃
in the kotatsu
View GitHub Profile
@voluntas
voluntas / webrtc_turn.rst
Last active October 8, 2025 04:14
WebRTC で利用されいる TURN プロトコルの解説

WebRTC で利用されいる TURN プロトコルの解説

日時:2021-01-29
作:@voluntas
バージョン:2021.2
url:https://voluntas.github.io/

@kat0h
kat0h / vim9script4pythondevelopers.md
Last active January 15, 2025 12:26
Vim9 script for Python Developers

Vim9 script for Python Developers

Vim9 scriptはVim scriptとの互換をなくし変数の型縛りを導入したり、コンパイルをすることなどにより、高速化を実現した新しい処理系です。

defコマンドで定義された関数内、またはVim script内でvim9scriptコマンドを使うことで利用できます(vim9scriptコマンドの後ではfunctionコマンドは利用できません)。

この記事は、 https://gist.github.com/yegappan/16d964a37ead0979b05e655aa036cad0 の内容を元にVim(v8.2.2576)上のVim9 scriptで動作するように改変したものです。

Vim9 scriptで動作を確認できなかったもの、まだ実装されていなものはpassと表記し、省略しています。

@RGBA-CRT
RGBA-CRT / get_ts_program_txt_all.bat
Created May 3, 2021 17:05
ts録画ファイルから.ts.program.txtを生成するpythonスクリプト(TVRemotePlusに喰わせる用)
@echo off
for /f "delims=" %%i in ('dir /b .\*.ts') do (
py make_program_txt.py "%%i"
)
pause
@dreamcat4
dreamcat4 / ikev2.xml
Created June 11, 2021 18:15 — forked from dapao9999/ikev2.xml
IKEv2 VPN profile for Apple devices, Pre-Shared Key(PSK)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- IKEv2 IPSec VPN profile for Apple devices, Pre-Shared Key(PSK), no username password.
References:
https://wiki.strongswan.org/projects/strongswan/wiki/AppleIKEv2Profile
https://developer.apple.com/library/mac/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html
https://help.apple.com/configurator
The extension of this file should be .mobileconfig -->
@tsukumijima
tsukumijima / TSInfoExtractor.py
Last active August 13, 2025 04:00
TS ファイルから各種情報を取得して JSON で出力するツール / ライブラリ
#
# TSInfoExtractor.py
# Copyright (c) 2021-2022 tsukumi. Licensed under MIT.
#
import json
import sys
from copy import copy
from datetime import date
from datetime import datetime
#!/bin/bash -ex
command -v gs > /dev/null || {
echo "gs(ghostscript) is not found">&2
exit 1
}
command -v curl > /dev/null || {
echo "curl is not found">&2
exit 1
@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;
@fedegomez
fedegomez / checkTitles.js
Last active October 26, 2024 20:44
Checks if the title of the result in the SERP matches the title of the URL
javascript: (function (doc){var changed=0; function checkTitles(){console.log('jQuery version ', $.fn.jquery, ' loaded'); var position=1; var items=[]; var results=$('#rso .kp-blk .g, #rso .g[class="g"], #rso .srg .g').not('.kno-kp .g').find('div:first').find('a:first'); $('.title-changed, #CountTitlesChanged').remove(); results.each(function (){if (!$(this).parents('.related-question-pair').length){var parent=$(this).closest('.tF2Cxc').length > 0 ? $(this).closest('.tF2Cxc') : $(this).closest('li'); items.push([ position, $(this).find('h3').text(), encodeURI($(this).attr('href')), parent]); position++;}}); var numItems=1; cors_proxies=[ 'https://api.codetabs.com/v1/proxy?quest=', 'https://jsonp.afeld.me/?url=',]; items.forEach(item=>{$.ajax({url: cors_proxies[Math.floor(Math.random() * cors_proxies.length)] + item[2], success: function (data, status, xhr){title=$(data).filter('title').text(); var html='<div class="title-changed">'; if (title !=item[1]){html +='<span style="font-weight: bold;color: #ff6961;">

概要

昨今xR業界への転職が盛り上がっております(僕調べ)

じゃあ何を勉強しておけばxR業界に転職できるか、みたいなのは色々な人がアドバイスしてるのですが、全部やるとなると転職する前に人生80年くらいが終わってしまう可能性があります。 僕は5年ほど前に異業種からxR業界にソフトウェアエンジニアとして転職して、幾つかのプロジェクトをやりながら今に至ります。

転職前に何を知らなかったかをここで書いておくことで、「ああ、意外とちゃらんぽらんでも転職は出来るのね」とハードルを下げてみんなxR業界に来て欲しいな、という意図があります。

ソフトウェア開発文化

Git+Github

@monyone
monyone / MPEG2VIDEOをライブ再生したい.md
Created October 21, 2021 14:36
mpeg2video をライブ再生させたい

これは何?

Chrome M94 で追加された以下のAPIを使った TS (mpeg2video + aac) の再生実験

  • WebCodecs
  • Insertable Stream for MediaStreamTrack

mpeg2video のデコードは別途、mpeg2videoをデコードできる decoder_wasm を利用した.