Skip to content

Instantly share code, notes, and snippets.

@nozma
nozma / .lua
Created Jun 19, 2019
.hammerspoon
View .lua
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 Apr 14, 2019
Hammerspoonの設定
View init.lua
--
-- 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()
View swift-example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View file0.r
## データの準備
d <- data.frame(
kana = c("", "", "", "", ""),
letter = c("A", "e", "C", "b", "Z"),
stringsAsFactors = FALSE
)
@nozma
nozma / sec08.Rmd
Created Nov 1, 2018
Pythonではじめる機械学習 8章
View sec08.Rmd
---
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 Sep 27, 2018
5.3.2.4 不確実性を考慮に入れる
View 5-3-2-4.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nozma
nozma / rlist_tutorial.Rmd
Last active Aug 6, 2018
rlistのチュートリアル
View rlist_tutorial.Rmd
---
title: "rlist Tutorial"
author: '@nozma'
date: "2018/8/4"
output:
prettydoc::html_pretty:
theme: leonids
highlight: github
keep_md: true
---
@nozma
nozma / 4-4-4-5.ipynb
Created Aug 1, 2018
4.4から4.5あたり
View 4-4-4-5.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View get_FAMIC_breaking_news.py
# -*- coding:utf-8 -*-
import re
import os
import requests
import pandas as pd
from bs4 import BeautifulSoup
from urllib.parse import urljoin
# 農薬登録情報速報(http://www.acis.famic.go.jp/searchF/index/index.html)をスクレイピングする
# ※FAMICの免責事項に従ってください(https://www.acis.famic.go.jp/index_kensaku.htm)
@nozma
nozma / custom_css.css
Created Apr 30, 2018
custom css for discord.app
View custom_css.css
.message-group .comment .markup {
/* for Japanese language */
/* require IPAexGothic font */
font-family: 'IPAexGothic';
line-height: 1.6;
}
You can’t perform that action at this time.