Skip to content

Instantly share code, notes, and snippets.

@kn1kn1
kn1kn1 / spotlight.md
Last active August 23, 2023 00:47
Spotlight メニューのキーボードショートカットの変更

Spotlight メニューのキーボードショートカットの変更

Spotlight を起動するキーボードショートカットをctrl-英数にする方法

~/Library/Preferences/com.apple.symbolichotkeys.plist

64のvalue - parameters - item 149(スペースキー)から102(英数キー)に変更する

com apple symbolichotkeys plist

@kn1kn1
kn1kn1 / r_tz.ipynb
Created December 12, 2022 09:27
r_tz.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kn1kn1
kn1kn1 / undersampling-bagging.ipynb
Created December 5, 2022 05:33
undersampling-bagging.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kn1kn1
kn1kn1 / imbalanced_data.ipynb
Created December 5, 2022 05:00
imbalanced_data.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kn1kn1
kn1kn1 / raspi3.md
Last active October 21, 2022 08:51
raspi3.md
  • /boot/config.txt
    • 以下を追加
hdmi_force_hotplug=1
hdmi_ignore_edid=0xa5000080
config_hdmi_boost=4
hdmi_group=2
hdmi_mode=39
disable_overscan=0
overscan_left=24

概要

Apache BeamのJavaのパイプラインからPythonの処理を呼び出すことのできるJava multi-language pipelinesの簡単な例( https://beam.apache.org/documentation/sdks/java-multi-language-pipelines/ )を実行したのだが、環境を作るのに少々煩雑であったので、そのメモ。

経緯

Apache Beamの2.40.0からRunInference transformが導入され、Apache Beam PythonではPyTorchとscikit-learnのモデルが直接サポートされるようになった。

var timer=100;document.querySelectorAll(
"div > input[type='checkbox']:checked"
).forEach((interest) => {
setTimeout(function(){interest.click()},timer);timer+=2000;});
layout title
post
Algorave 10 Leipzig

Leipzig Livecoding Hubの方からお誘い頂き、4/17(日)にAlgorave 10 Leipzigのshowcase枠でPetalの紹介とパフォーマンスをしたのでその記録。

  • 3月末ころLeipzig Livecoding Hubの方からSIAF事務局に「Petalの作者KENICHI KANAI(@kn1kn1)とコンタクトしたい」と連絡があり、先方に連絡先を教えて良いか聞かれた
    • 事務局より連絡先を伝えて頂き、先方からの連絡を1週間ほど待ったが来ないので、こちらから連絡した
  • コミットログにvalidなメールアドレスが書いてあれば、事務局経由でなくそちらにメールしてくれてたかもしない