Skip to content

Instantly share code, notes, and snippets.

@nozma
nozma / iris.csv
Created July 13, 2021 12:18
iris+id
Sepal.Length Sepal.Width Petal.Length Petal.Width Species id
5.1 3.5 1.4 0.2 setosa 1
4.9 3 1.4 0.2 setosa 2
4.7 3.2 1.3 0.2 setosa 3
4.6 3.1 1.5 0.2 setosa 4
5 3.6 1.4 0.2 setosa 5
5.4 3.9 1.7 0.4 setosa 6
4.6 3.4 1.4 0.3 setosa 7
5 3.4 1.5 0.2 setosa 8
4.4 2.9 1.4 0.2 setosa 9
" general
set autoupdategist " gistの設定を自動反映
let scrollstep = 150
let fullpagescrollpercent = 100
set smoothscroll
set noautofocus " サイトを開いた時に入力欄にフォーカスが奪われるのを抑止
let searchlimit = 20
let barposition = "bottom"
# ===============
# navigatge
# ===============
map o Vomnibar.activate
map t Vomnibar.activateInNewTab
map d removeTab
map u restoreTab
map l nextTab
map h previousTab
map zi zoomIn
@nozma
nozma / .lua
Created June 19, 2019 02:47
.hammerspoon
local function keyCode(key, modifiers)
modifiers = modifiers or {}
return function()
hs.eventtap.event.newKeyEvent(modifiers, string.lower(key), true):post()
hs.timer.usleep(1000)
hs.eventtap.event.newKeyEvent(modifiers, string.lower(key), false):post()
end
end
local function remapKey(modifiers, key, keyCode)
@nozma
nozma / init.lua
Created April 14, 2019 11:06
Hammerspoonの設定
--
-- Hammerspoon用 KeyRemap 設定
--
local function keyCode(key, modifiers)
modifiers = modifiers or {}
return function()
hs.eventtap.event.newKeyEvent(modifiers, string.lower(key), true):post()
hs.timer.usleep(1000)
hs.eventtap.event.newKeyEvent(modifiers, string.lower(key), false):post()
@nozma
nozma / swift-example.ipynb
Last active April 9, 2019 22:22
Swift Example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nozma
nozma / file0.r
Last active December 6, 2018 10:36
Rのソートとlocaleについて ref: https://qiita.com/nozma/items/4aea36022ce18a6aa5ca
## データの準備
d <- data.frame(
kana = c("お", "エ", "う", "イ", "あ"),
letter = c("A", "e", "C", "b", "Z"),
stringsAsFactors = FALSE
)
@nozma
nozma / sec08.Rmd
Created November 1, 2018 23:22
Pythonではじめる機械学習 8章
---
title: "8章 おわりに"
author: "R. Ito"
date: "`r Sys.Date()`"
output:
prettydoc::html_pretty:
theme: leonids
highlight: github
---
@nozma
nozma / 5-3-2-4.ipynb
Last active September 27, 2018 03:14
5.3.2.4 不確実性を考慮に入れる
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nozma
nozma / 4-4-4-5.ipynb
Created August 1, 2018 12:11
4.4から4.5あたり
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.