Skip to content

Instantly share code, notes, and snippets.

View fumiya-kume's full-sized avatar
⌨️
Typing or Code Reading

kuu(Fumiya Kume) fumiya-kume

⌨️
Typing or Code Reading
View GitHub Profile
@fumiya-kume
fumiya-kume / build.sh
Created December 31, 2021 07:17
Skia lib build on macOS
bin/gn gen out/release \
--args="is_official_build=true \
skia_use_libjpeg_turbo_decode=false \
skia_use_libjpeg_turbo_encode=false \
extra_cflags_cc=[\"-frtti\"] \
skia_use_system_libwebp = false \
skia_use_system_harfbuzz = false \
skia_use_system_libpng = false \
is_component_build = false \
"
magick compare -fuzz 5% image1.png image2.png -compose src result.png
public class WavAnalyzer
{
public string riffId;
public uint fileSize;
public string wavId;
public string formatId;
// フォーマットのチャンク数
public uint formatChunkSize;
public ushort format;
// チャネル数
import numpy as np
# 3 layer neural network
class ThreeLayerNetwork:
def sigmoid(self,x):
return 1.0 / (1.0 + np.exp(-np.clip(x, -self.sigmoid_range, self.sigmoid_range)))
def derivative_sigmoid(self,o):
return o * (1.0 - o)
# 自動補完を有効にする
# コマンドの引数やパス名を途中まで入力して <Tab> を押すといい感じに補完してくれる
# 例: `cd path/to/<Tab>`, `ls -<Tab>`
autoload -U compinit; compinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# 入力したコマンドが存在せず、かつディレクトリ名と一致するなら、ディレクトリに cd する
# 例: /usr/bin と入力すると /usr/bin ディレクトリに移動
setopt auto_cd
@fumiya-kume
fumiya-kume / なやは
Created October 31, 2018 05:36
かなや
さは
using System;
using System.IO;
using Xamarin.UITest;
namespace LTTimer.UITest
{
public static class Extension
{
public static void ExScreenShot(this IApp app, string Title)
{
@fumiya-kume
fumiya-kume / ななや
Created October 31, 2018 05:21
あああ
ややや
@fumiya-kume
fumiya-kume / hello_world.py
Created October 16, 2018 03:11
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
@fumiya-kume
fumiya-kume / ファイル名
Created October 31, 2018 04:08
なんとか
content