Skip to content

Instantly share code, notes, and snippets.

{
"title": "Left ctrl + Nums(6~0) to Function Keys",
"rules": [
{
"description": "左Ctrl+数字キー(6~0)をFunction Key(F6~F10)にリマップする",
"manipulators": [
{
"from": {
"key_code": "6",
"modifiers": {
@icchi-h
icchi-h / setting.json
Last active January 12, 2019 23:58
My setting file for Visual Studio Code
{
////////////////////////////////////////////////////////////////////////
// general
////////////////////////////////////////////////////////////////////////
// font
"editor.fontSize": 14,
"editor.fontFamily": "Cica, Ricty, Menlo, Monaco, 'Courier New', monospace",
// editor
"editor.tabSize": 4,
@icchi-h
icchi-h / wifi.sh
Last active December 17, 2016 09:31
WiFi操作スクリプト for Mac
#!/bin/sh
# WiFi操作スクリプト for Mac
# Haruyuki Ichino
# 2016/12/17
# Usage:
# Example) $ wifi.sh reboot
opt=$1
# 引数チェック
@icchi-h
icchi-h / complete_sample_num.py
Created November 28, 2016 10:18
ラベルに記載されたクラス間のサンプル数を揃えるプログラム
import numpy as np
import random
# データ配列
data = np.array(range(10,20))
print("data:", data)
# ラベル配列
label = np.array([0, 0, 1, 1, 1, 2, 2, 2, 2, 2])
print("label:", label)
# 全クラスのサンプル数
.lkc-thumbnail {
max-width: 120px;
max-height: 120px;
/*余白の調整*/
margin: 0 6px 8px 8px !important;
}
.lkc-thumbnail-img {
max-width: 120px;
max-height: 120px;
}
@icchi-h
icchi-h / getNearestValue_sample2.py
Last active August 24, 2016 08:45
Pythonのリスト要素からある値と最も近い値を取り出す ref: http://qiita.com/icchi_h/items/fc0df3abb02b51f81657
# coding: utf-8
import numpy as np
def getNearestValue(list, num):
"""
概要: リストからある値に最も近い値を返却する関数
@param list: データ配列
@param num: 対象値
@icchi-h
icchi-h / arduino-Lchika.ino
Last active July 20, 2016 10:05
Arduinoを使ったLチカ用プログラム. http://blog.icchi.me/sainsmart-arduino-mega-led/
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
}
@icchi-h
icchi-h / sampleLCD.c
Created April 3, 2016 09:56
check LCD SD1602VBWB using AVR attiny 2313
#include "lcdLib.h"
int main(void)
{
Lcd_Init();
Lcd_Write("Hello",5);
Lcd_MoveCur(0, 1);
Lcd_Write("AVR World", 9);
}
@icchi-h
icchi-h / sample.tex
Created April 3, 2016 09:52
Check compile script for tex
\documentclass{jarticle}
\title{\LaTeX\ Sample}
\begin{document}
\maketitle
Hello \LaTeX \\
こんにちは \LaTeX
\end{document}
@icchi-h
icchi-h / mytex.sh
Created April 3, 2016 09:51
auto compiling script tex file for mac. It has -b option to compole bib file.
#!/bin/sh
# mytex.sh
# Haruyuki Ichino
# 2015/06/18
# auto compiling script tex file for mac. It has -b option to compole bib file.
err_pro(){
if [ ! -e $1 ]; then