Skip to content

Instantly share code, notes, and snippets.

View windymelt's full-sized avatar
😄
Working from Home

Windymelt windymelt

😄
Working from Home
View GitHub Profile
#!/bin/sh
#|-*- mode:lisp -*-|#
#| <Put a one-line description here>
exec ros -Q -- $0 "$@"
|#
(progn ;;init forms
(ros:ensure-asdf)
#+quicklisp (ql:quickload '(:lispbuilder-sdl :lispbuilder-sdl-gfx :alexandria) :silent t)
)
@windymelt
windymelt / bmp085.ino
Created October 24, 2017 17:28
BMP085/ESP-WROOM-02
#include <Adafruit_BMP085.h>
// Connect VCC of the BMP085 sensor to 3.3V (NOT 5.0V!)
// Connect GND to Ground
// Connect SCL to i2c clock - on '168/'328 Arduino Uno/Duemilanove/etc thats Analog 5
// Connect SDA to i2c data - on '168/'328 Arduino Uno/Duemilanove/etc thats Analog 4
// EOC is not used, it signifies an end of conversion
// XCLR is a reset pin, also not used here
Adafruit_BMP085 bmp;
@windymelt
windymelt / commonlisp.el
Created August 23, 2017 15:44
Emacs common lisp setup
;; roswellをデフォルトのCommon Lisp処理系に設定
;; qlotを動作させてローカルquicklispを動作させる
;; TODO: qlotがないときはros -Q run
(setq inferior-lisp-program "qlot exec ros -S . run")
;; ~/.emacs.d/slimeをload-pathに追加
(add-to-list 'load-path (expand-file-name "~/.emacs.d/slime"))
;; SLIMEのロード
(load (expand-file-name "~/.roswell/helper.el"))
(require 'slime-autoloads)
(setq slime-contribs '(slime-repl slime-asdf slime-fancy slime-banner slime-indentation))
#!/bin/sh
killall xcape
xmodmap -e 'keycode 255=space'
xmodmap -e 'keycode 65=Shift_L'
/usr/bin/xcape -e '#65=space'
#cVim-command-bar, #cVim-command-bar-mode, #cVim-command-bar-input, #cVim-command-bar-search-results,
.cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left,
.cVim-completion-item .cVim-right {
font-family: Helvetica, Helvetica Neue, Neue, sans-serif, monospace, Arial;
font-size: 10pt !important;
-webkit-font-smoothing: antialiased !important;
}
#cVim-command-bar {
position: fixed;
@windymelt
windymelt / sketch.ino
Created August 28, 2016 11:42
Arduino FioとXBee S6B(Wi-Fi)で,XBeeを設定しTCP経由でテスト信号を送信するスケッチ
void setup() {
// XBeeは標準で9600baudで通信を行う
Serial.begin(9600);
// 待つ
delay(1100);
// Configuration Modeに入る
Serial.print("+++");
// 待つ
delay(1100);
digraph Servers {
sdb1 [label="PV: /dev/sdb1"]
vg [label="VG: working"];
meta [label="LV: meta"];
dockerdata [label="LV: dockerdata"];
meta -> vg; dockerdata -> vg; vg -> sdb1;
docker [label="Docker", shape=box];
convoy [label="Convoy", shape=box];
msm [label="container: msm", shape=box3d];
@windymelt
windymelt / strich-nomo.py
Created December 12, 2015 11:11
シュトリヒ対応ノモグラム作成スクリプト
from pynomo.nomographer import *
N_params_1={
'u_min':0.0,
'u_max':10.0,
'function':lambda u:u,
'title':r'$width [m]$',
'tick_levels':3,
'tick_text_levels':1,
}
@windymelt
windymelt / README.md
Last active November 20, 2015 11:16
swi-prologを秀丸で走らせるマクロ

インストール

  1. 秀丸にこのマクロを登録する(登録方法はググってね)
    1. auto-install.batをダウンロード(拡張子は.batのまま:ファイルの種類を「すべてのファイル」とする)して起動する
    2. 秀丸を開き[マクロ]→[マクロ登録]を開く
    3. 空いている適当なスロットに適当な名前(例えば「run swipl」)をつける
    4. 「ファイル名」隣の[▼]をクリックするとrun-swipl.macが表示されているはず(されていなかったらそのフォルダにrun-swipl.macを持ってくる)ので選択する
    5. [OK]をクリックする

使い方

  1. マクロを登録する
@windymelt
windymelt / PGP Public Key
Created October 27, 2015 03:04
Public Key of windy.imlovinit AT gmail.com
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - https://gpgtools.org
mQENBE9+pmUBCACwtdCHjz2/uFwl3ex/vmcQx7U2G7WFezxuC2b2yco4rUBFzPVW
VwtjJO6luueo2G50Nanm8a+Grdeymm+lQrJ+WmD7VveqK/qbHre43SVElbDvcV01
ocsus/rgrpVkZ/1ZHvm7jJN2OXStdnarxmfrAsbCELkDBmTSWyC4AW+lCDnrgGcE
ZhV7BrQyz9WyPiqXANiqh2a1F5tX5KOGfDymWtkmrBeQo5pn924FI+1QXJiCeB63
0EJXuilgesTSKpJ/lTPpbqY0RtPT7ogQwu7FAEUJFIejEQrX6JhrCxiuL2QQgmII
wael+hOd7L9t3Z8SzFnU9t9Ucrv7B23os0wrABEBAAG0K0tlaXN1a2UgTm9ndWNo
aSA8d2luZHkuaW1sb3Zpbml0QGdtYWlsLmNvbT6JATwEEwEKACYCGwMHCwkIBwMC