Skip to content

Instantly share code, notes, and snippets.

@takashiski
takashiski / promicro.h
Created May 4, 2024 05:37
for Arduino IDE. convert AVR pin name to ArduinoIDE sparkfun promicro pin number.
/**
Copyright 2024 takashiski
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
[general]
version = 4
name = basic profile
definition = fdmprinter
[metadata]
type = quality_changes
quality_type = draft
intent_category = default
position = 0
{
"name": "jp60v1",
"vendorId": "0xDEAD",
"productId": "0xBEEE",
"lighting": "none",
"matrix": {
"rows": 5,
"cols": 14
},
"layouts": {
{
"name": "jp60v1p1",
"vendorId": "0xDEAD",
"productId": "0xBEEF",
"lighting": "none",
"matrix": {
"rows": 5,
"cols": 14
},
"layouts": {
@takashiski
takashiski / Fehde-ShiraneYuki.md
Last active February 7, 2021 18:31
雰囲気歌詞書き起こし。意見ください。 白音ゆき フェーデ https://booth.pm/ja/items/2557881
あーあー...あ゛ぁ゛なんだこれきこえてんの!?
もー...うー...みなさまーしゅうごー!

さーっきからさー(あーあ)???(逃げてやになっちゃうね?) 
行き急いで あーまだまだ(??しよ) 考えたふりで満足か?
心の声押し殺し まずい飯くうくらいなら
ボクだけを見てなよ、いいでしょ?

???(固まる?)怠惰の結晶
@takashiski
takashiski / Aliexpress17trackerURLGenerator.js
Created June 28, 2020 16:04
aliexpressの注文一覧画面から表示されてる注文すべての追跡番号を含んだ17trackのURLを取得するユーザースクリプト
// ==UserScript==
// @name Aliexpress17trackerURLGenerator
// @namespace http://takashiski.hatenablog.com/
// @version 0.1
// @description generate URL aliexpress order list to 17Track URL.
// @author takashiski
// @match https://trade.aliexpress.com/orderList.htm*
// @grant GM_xmlhttpRequest
// ==/UserScript==
(module MS88SF21 (layer F.Cu) (tedit 5EAC590F)
(fp_text reference U1 (at 0.1 8.25) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value MS88SF2 (at 0.5 6.5) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text user D+ (at 10.7 8.09) (layer F.Fab)
(effects (font (size 0.5 0.5) (thickness 0.1)))
)
@takashiski
takashiski / keymap.json
Last active February 25, 2020 12:37
OtakuSplitのおすすめキーマップ(いまのところ)
{"keyboard":"otaku_split/rev1","keymap":"otaku_reccomended","layout":"LAYOUT","layers":[["KC_GRV","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_6","KC_7","KC_8","KC_9","KC_0","KC_MINS","KC_EQL","KC_JYEN","KC_BSPC","KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_LBRC","KC_RBRC","KC_ENT","KC_CAPS","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_NUHS","KC_LSFT","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_RO","KC_RSFT","KC_LCTL","KC_LGUI","KC_LALT","KC_MHEN","LT(1,KC_DEL)","KC_SPC","KC_SPC","KC_SPC","KC_ENT","LT(1,KC_BSPC)","KC_HENK","LT(1,KC_KANA)","KC_RALT","KC_APP","KC_RCTL"],["KC_GRV","KC_F1","KC_F2","KC_F3","KC_F4","KC_F5","KC_F6","KC_F6","KC_F7","KC_F8","KC_F9","KC_F10","KC_F11","KC_F12","KC_JYEN","KC_DEL","KC_TAB","KC_Q","KC_UP","KC_E","KC_R","KC_T","KC_Y","KC_HOME","KC_PGDN","KC_PGUP","KC_END","KC_P","KC_LBRC","KC_RBRC","KC_PSCR","KC_ESC","KC_LEFT","KC_DOWN","KC_RGHT","KC_F","KC_G"
/* Copyright 2017 Wunder
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#!/bin/bash
make -r -R -C ./ build_keyboard.mk
KEYBOARD=xd75
KEYMAP=atomic_style_jp
SILENT=false $*