Skip to content

Instantly share code, notes, and snippets.

View katsusuke's full-sized avatar

Katsusuke Shimizu katsusuke

View GitHub Profile
@katsusuke
katsusuke / math.ex
Created August 8, 2018 00:00
elixir pructice
defmodule Math do
def sum(a, b) do
a + b
end
end
@katsusuke
katsusuke / Gemfile
Last active November 15, 2018 08:37
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
# gem "rails"
gem 'pry'
@katsusuke
katsusuke / .gitignore
Last active February 8, 2019 02:26
type guard
/node_modules
@katsusuke
katsusuke / warui.py
Last active February 5, 2020 04:45
warui
import math
class Degree:
def get_degree(self, radian):
return radian / (math.pi * 180.0)
@katsusuke
katsusuke / .gitignore
Last active August 26, 2020 07:00
BLE-Peripheral
/node_modules
@katsusuke
katsusuke / nfd_d.sh
Created October 2, 2020 06:25 — forked from dot/nfd_d.sh
detect NDF file
#!/bin/sh
dir=$1
if [ ! -d "$dir" ]; then
dir='.'
fi
find "$dir" -name '*[! -~]*' | while read file
do
bstr=`basename "$file" | xxd -g1`
@katsusuke
katsusuke / .gitignore
Last active August 25, 2021 09:05
ts-jest-sample
/node_modules