Skip to content

Instantly share code, notes, and snippets.

View 4noha's full-sized avatar

Shinonome.Hatsuri 4noha

View GitHub Profile
@GOROman
GOROman / ThetaTest.rb
Last active January 13, 2016 05:18
PCからTHETAのシャッターを切る最小限のサンプルプログラム
#!ruby
#
# THETAのシャッターをPCから遠隔で切るだけの例 by GOROman
#
# 参考にしたページ
# http://mobilehackerz.jp/contents/Review/RICOH_THETA
require 'socket'
@esehara
esehara / gist:347689484e2ae1c92cdd
Last active April 6, 2016 11:45
なろうクラスタリング
0: 異世界チート魔術師(マジシャン)
[ファンタジー,R15,残酷な描写あり,ファンタジー,異世界トリップ,チート,完結が最大の目標,魔法,恋愛,強さのインフレ,テンプレ]
0: クロの戦記
[ファンタジー,R15,残酷な描写あり,ファンタジー,異世界,貴族,国家/民族,異世界召喚,エルフ,チート,ハーレム,ミノタウルス,奴隷,内政,魔術,蛮族]
0: オーバーロード:後編
[ファンタジー,R15,MMO,最強,異世界]
0: 二度目の人生を異世界で
[ファンタジー,R15,残酷な描写あり,警告タグは保険,チート表現あり]
0: 勇者互助組合 交流型掲示板
[ファンタジー,勇者,多重世界,掲示板,勇者がいっぱい,だらだらおしゃべり,基本コメディ,時々シリアス?,あくまでも掲示板形式]
@jansegre
jansegre / script.lua
Last active February 10, 2020 23:48
Very basic luajit from Rust.
-- script.lua
-- Receives a table, returns the sum of its components.
io.write("The table the script received has:\n");
x = 0
for i = 1, #foo do
print(i, foo[i])
x = x + foo[i]
end
io.write("Returning data back to C\n");
return x
@ykst
ykst / gist:6e80e3566bd6b9d63d19
Last active March 2, 2025 15:22
WebAudio+WebSocketでブラウザへの音声リアルタイムストリーミングを実装する

WebAudio+WebSocketでブラウザへの音声リアルタイムストリーミングを実装する

WebRTCでやれよ!と言われそうなところですが、 WebSocket+WebAudioの組み合わせで音声ストリーミングをシンプルに構成する方法を紹介してみます。

サーバーサイド(Node.js + ws + pcm)

サーバーサイドは何でも良いのですが、 とりあえずNode.jsでtest.mp3というサンプルファイルをpcmモジュールでデコードし、 wsでクライアントに垂れ流す作りにしておきます。

@sabas1080
sabas1080 / ESP32_HID.ino
Last active November 25, 2024 08:30
Example of HID Keyboard BLE with ESP32
/*
Copyright (c) 2014-2020 Electronic Cats SAPI de CV. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@atsunoda
atsunoda / smtp_domain_takeover.md
Last active September 2, 2022 22:36
SSRFを利用したメール送信ドメインの乗っ取り
@FlowingSPDG
FlowingSPDG / 1k_tone.bat
Last active February 21, 2023 15:39
現場であると便利なffmpegバッチファイルまとめ
rem 1Kトーンを再生する
ECHO OFF
ffplay -f lavfi -i "sine=frequency=1000"