Skip to content

Instantly share code, notes, and snippets.

@ji6czd
ji6czd / init.el
Created July 31, 2024 19:42
My Emacs init file.
;(load-file "~/src/emacspeak/lisp/emacspeak-setup.el")
(blink-cursor-mode 0)
;; Emacs startup initialization
(set-language-environment 'Japanese)
(setq default-buffer-file-coding-system 'utf-8)
(setq default-process-coding-system '(utf-8 . utf-8))
(setq default-file-name-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-default-coding-systems 'utf-8) ; utf-8 にする
@ji6czd
ji6czd / xiao.h
Created May 1, 2024 18:17
Pin definition of SEEED Xiao ESP32C3
/*
Copyright (C) 2024 KIRIAKE Masanori <[email protected]>
The original of this file is included in the ESP32 Arduino Library. This file
has been modified so that the original file can be compiled with ESP-IDF.
*/
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include "driver/gpio.h"
@ji6czd
ji6czd / CMakeLists.txt
Created June 10, 2023 23:20
Raspberry Pico SDK minimum CMakeList.txt
cmake_minimum_required(VERSION 3.12)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
project(project1 C CXX ASM)
pico_sdk_init()
add_executable(test test.c)
@ji6czd
ji6czd / WebRentACrowdwithSound.SMF
Last active September 4, 2022 14:52
主にブラウザを使うときに、見出しとかボタンとかをサウンドアイコン(イヤコン)にしてしまう、JAWS用の設定ファイル。
[Attribute Behavior Table]
0X801=1|MessageVoice|||
0X1001=1|MessageVoice|||
0X88001=1|MessageVoice|||
0X208001=1|MessageVoice|||
0X408001=3|||OCRVoice|
0X1008001=1|MessageVoice|||
0X2008001=1|MessageVoice|||
0X4008001=1|MessageVoice|||
0X8008001=1|MessageVoice|||
@ji6czd
ji6czd / radiko.py
Last active May 22, 2024 00:42 — forked from takuya/test.py
Radikoを聴くためのスクリプトです。元々は認証してプレイリストのURLを取得するものを、ちょっとだけ修正と整理をしてコマンドラインから簡単に聴けるようにしてみました。ffmpegの付属ツールffplayが必要です。HLS形式での配信になり、rtmpdump, swftoolsが不要になりました。
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import urllib.request, urllib.error, urllib.parse
import os, sys, datetime, argparse, re
import subprocess
import base64
import shlex
import logging
from sys import argv