Skip to content

Instantly share code, notes, and snippets.

View BonyChops's full-sized avatar
🔥

Bony_Chops BonyChops

🔥
View GitHub Profile
@BonyChops
BonyChops / settings.json
Created October 10, 2020 09:25
.vscode files for HEW projects
{
"files.encoding": "shiftjis",
"C_Cpp.default.includePath": [
"C:\\Program Files (x86)\\Renesas\\Hew\\Tools\\Renesas\\Sh\\9_4_3\\include",
"${default}"
]
}
@BonyChops
BonyChops / .EXAMPLE.md
Last active April 9, 2023 04:03
シフトボードの出力をExcelのシートで貼れるように変換する

image

@BonyChops
BonyChops / tex-setup.sh
Last active December 10, 2022 12:12
tex-setup
sudo apt update
sudo apt install texlive-lang-japanese texlive-latex-extra texlive-extra-utils texlive-science latexmk bzip2
sudo sh -c "$(curl -fsSL https://gist.githubusercontent.com/BonyChops/cec1074f2c0dda7a1d29ec31609bc4a8/raw/jlisting-install.sh)"
sudo kanji-config-updmap-sys ipaex
@BonyChops
BonyChops / main.cpp
Last active October 14, 2022 08:14
LEDテープライト 全点灯サンプル
#include <Adafruit_NeoPixel.h>
#include <Arduino.h>
#define PIN 26 // LEDの信号線をつなぐマイコンのピン番号
#define STRIP_COUNT 52 //つなぐLEDの数
Adafruit_NeoPixel strip = Adafruit_NeoPixel(STRIP_COUNT, PIN, NEO_GRB + NEO_KHZ800); //あれこれ初期設定
void setup() {
strip.begin();
@BonyChops
BonyChops / randomPizza.sh
Created July 27, 2022 00:37
ランダムなピザの画像を20枚ダウンロードする
#!/bin/env sh
for i in `seq 0 19`
do
wget -O "pizza_""$i"".jpg" 'https://api.lorem.space/image/pizza?w=150&h=150'
done
@BonyChops
BonyChops / svgtopdf.sh
Created July 20, 2022 16:19
Convert svg files in directory to pdf
for f in $(ls *.svg | grep '.*\.svg$');
do
echo $f
inkscape $f --export-pdf=$f.pdf
done
set expandtab
set tabstop=2
set shiftwidth=2
set number
syntax on
@BonyChops
BonyChops / jlisting-install.sh
Last active June 30, 2022 08:56
jlisting-install
wget "https://osdn.net/frs/redir.php?m=gigenet&f=mytexpert%2F26068%2Fjlisting.sty.bz2" -O jlisting.sty.bz2
bzip2 -d jlisting.sty.bz2
sudo mkdir -p /usr/share/texlive/texmf-dist/tex/latex/listings/
sudo cp ./*.sty /usr/share/texlive/texmf-dist/tex/latex/listings/
sudo mktexlsr
@BonyChops
BonyChops / readme.md
Last active May 27, 2022 04:49
Count total count of releases' downloads