- ティッシュ買う
- 大森靖子/絶対少女 買う
- ゆべし買う
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Gyazo Image Insert | |
// @namespace https://oq.la/ | |
// @version 1.5 | |
// @description Insert recent images from Gyazo into textarea and modern contentEditable elements. | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
USERNAME="oquno" | |
def get_ordered_nodes(mapping, current_node): | |
node_data = mapping[current_node] | |
children = node_data['children'] | |
ordered_nodes = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function() { | |
const userStyle = 'font-weight: bold; color: blue;'; | |
const aiStyle = 'font-weight: bold; color: green;'; | |
const messages = document.querySelectorAll(".flex .flex-col .items-start.gap-4"); | |
let chatHistory = ''; | |
messages.forEach(message => { | |
const role = message.childNodes[0].classList && message.childNodes[0].classList.contains('markdown') ? 'ChatGPT' : 'ユーザー'; | |
const style = role === 'ユーザー' ? userStyle : aiStyle; | |
chatHistory += `<p><span style="${style}">${role}: </span>${message.innerHTML}</p>`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource: http://RASPI/sensor.json | |
method: GET | |
scan_interval: 30 | |
sensor: | |
- name: UD CO2 | |
unique_id: ud1_co2 | |
value_template: "{{ value_json.stat.co2ppm }}" | |
unit_of_measurement: "ppm" | |
state_class: measurement | |
device_class: carbon_dioxide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json, datetime, re, serial, io | |
class UDCO2S: | |
def __init__(self, dev="/dev/ttyACM0"): | |
self.dev = dev | |
def start_logging(self, log_file): | |
regex = re.compile(r'CO2=(?P<co2>\d+),HUM=(?P<hum>\d+\.\d+),TMP=(?P<tmp>-?\d+\.\d+)') | |
with serial.Serial(self.dev, 115200, timeout=6) as conn: | |
conn.write("STA\r\n".encode()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('Font8x12').add(Graphics); | |
g.clear(); | |
g.setFontVector(20); | |
g.drawString("oquno", 62, 10); | |
g.setFont8x12(); | |
g.drawString("http://oq.la", 62, 35); | |
g.setFontVector(9); | |
g.drawString("07064591176", 62, 48); | |
var image = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
■8/1 西院ミュージックフェス@さいばば | |
[artist]音に敏感[/artist] | |
→ [url]http://oquno.com/3290[/url] | |
■8/1 お疲れSUMMER OF PANPAN~大阪編~@十三ファンダンゴ | |
[artist]パンパンの塔[/artist] # 2回目 | |
[artist]3markets[][/artist] | |
[artist]The キャンプ[/artist] # 2回目 | |
[artist]山田エリザベス 良子[/artist] # 21回目 | |
[artist]モケーレムベンベ[/artist] |
- 洗濯槽カバー買う
- 卵買う
- フレンチトースト作る
- 色々洗濯する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Shift_JIS に文字コード変え太郎 | |
// @namespace http://oq.la | |
// @include https://hogehoge.com/hogehoge/* | |
// ==/UserScript== | |
var tags = ['head', 'HEAD']; | |
for (var i = 0; i < tags.length; i++) | |
{ | |
if (document.getElementByTagName(tags[i]).length > 0) |
NewerOlder