Skip to content

Instantly share code, notes, and snippets.

View BonyChops's full-sized avatar
🔥

Bony_Chops BonyChops

🔥
View GitHub Profile
@BonyChops
BonyChops / .EXAMPLE.md
Last active April 9, 2023 04:03
シフトボードの出力をExcelのシートで貼れるように変換する

image

@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 / readme.md
Last active May 27, 2022 04:49
Count total count of releases' downloads
@BonyChops
BonyChops / app.rb
Last active March 14, 2022 08:09
1kpi-ruby
require 'bigdecimal/util'
sum = 0
2090.times do |i|
t = (10 ** 1000) / ((2 * i + 1)* (3 ** (i + 1)))
sum += t if i % 2 == 0
sum -= t if i % 2 == 1
end
sum *= 6
sum *= Integer.sqrt(3 * (10 ** 1000) ** 2)
@BonyChops
BonyChops / remove-node-modules.sh
Created March 6, 2022 12:48
Find node_modules and remove it
rm $(find * -name node_modules -maxdepth 1 -type d) -r
@BonyChops
BonyChops / other-works.txt
Last active February 14, 2022 07:23
Other works at bonychops.com
See bonychops.com