Skip to content

Instantly share code, notes, and snippets.

@boronology
boronology / gist.md
Created June 18, 2021 00:26 — forked from coke12103/gist.md
windows in ArchLinuxでVRCをRadeonでもやってみた

windows in ArchLinuxでVRCをRadeonでもやってみた

この文章はTLに唐突に流れてきたwindows in ArchLinuxで無線フルトラするを見て深夜にテンション爆上がりでやったことを翌日の深夜にまとめたものです。 文章はほとんど書かないので読みにくいかもしれませんがご了承を。

はじめに

わたしは普段はArchLinuxで生活していて、WindowsとはVRをするまでほとんど無縁でした。 VRChatも初めのうちはArchLinux上のProtonでデスクトップモードで遊んでいたほどです。

しかし、LinuxでVRをするためにはValve IndexやHTC Viveなど、ネイティブでSteam VRに対応したヘッドマウントディスプレイが必要であり、Oculus QuestはLinuxには公式で非対応。 一応、非公式の無線化をするためのソフトウェアの1つがLinux対応を進めてはいるもののそちらも実用段階とは言えません。

@boronology
boronology / user.css
Last active June 25, 2020 11:31
Mastodonの上級者向けUIでカラム幅を画面幅いっぱいに広げて使うためのカスタムCSS。
.column {
flex-grow: 1;
flex-shrink: 0;
flex-basis: 360px;
}
.columns-area--mobile > .column {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 100%;
@boronology
boronology / ViewModelBase.cs
Created May 29, 2019 12:40
INotifyPropertyChangedを極力隠蔽する実験の産物。
using System;
using System.ComponentModel;
using System.Collections;
namespace SampleProject
{
public class ViewModelBase : INotifyPropertyChanged
{
private Hashtable properties;
public event PropertyChangedEventHandler PropertyChanged;
@boronology
boronology / ComboBoxVM.cs
Created February 17, 2019 00:59
WPF定番コード集その3。ComboBox
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
namespace TemplateApp.ViewModel
{
public class ComboBoxVM<T> : ViewModelBase
@boronology
boronology / ViewModelBase.cs
Created February 17, 2019 00:57
WPF定番コード集その2。ViewModelBase
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace TemplateApp.ViewModel
{
@boronology
boronology / Command.cs
Created February 17, 2019 00:54
WPFの定番コード集その1。Command
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace TemplateApp.ViewModel
{
public class Command : ICommand
@boronology
boronology / training.py
Last active September 15, 2016 11:41
言語処理100本ノック http://www.cl.ecei.tohoku.ac.jp/nlp100/
#10. 行数のカウント
c=0
with open("hightemp.txt") as f:
for i in f:
c += 1
print(c)
#別解
with open("hightemp.txt") as f:
print(len(list(f)))
@boronology
boronology / training.sh
Last active September 15, 2016 13:29
言語処理100本ノック http://www.cl.ecei.tohoku.ac.jp/nlp100/
#第3章: 正規表現
#前準備
wget http://www.cl.ecei.tohoku.ac.jp/nlp100/data/jawiki-country.json.gz
#20. JSONデータの読み込み
zcat jawiki-country.json.gz |jq 'select(.title=="イギリス")' > uk.txt
#21. カテゴリ名を含む行を抽出
cat uk.txt|jq ".text" --raw-output| grep Category:
@boronology
boronology / training.sh
Last active September 16, 2016 10:23
言語処理100本ノック http://www.cl.ecei.tohoku.ac.jp/nlp100/
#準備
wget http://www.cl.ecei.tohoku.ac.jp/nlp100/data/hightemp.txt
#10. 行数のカウント
wc -l hightemp.txt
#別解
grep -c "" hightemp.txt
#11. タブをスペースに置換
cat hightemp.txt |tr "\t" " "
@boronology
boronology / training.py
Last active September 14, 2016 13:43
言語処理100本ノック http://www.cl.ecei.tohoku.ac.jp/nlp100/
#00.文字列の逆順
s = ""
for c in "stressed":
s += c
print(s)
#01.「パタトクカシーー」
f = "パタトクカシーー"
s = ""
l = [1,3,5,7]