CUIでSlackに草画像を投稿します。
投稿先のワークスペースはこちら → 招待リンク
$ cd /usr/local/bin # とか PATH の通ったところに移動
#!/bin/sh | |
base=192.168.1 | |
#beg=1 | |
#end=254 | |
# Mac (Mac's ping command has some different options (e.g. -i) than that of Linux?) | |
echo ${base}.{1..254} | xargs -P999 -n1 ping -c1 -t1 -i2| grep ttl |
CUIでSlackに草画像を投稿します。
投稿先のワークスペースはこちら → 招待リンク
$ cd /usr/local/bin # とか PATH の通ったところに移動
class BaseMixin: | |
"""ミックスインなので自身のインスタンス化を禁止""" | |
def __init__(self): | |
raise Exception('This is Mixin, thus cannot be instantiated itself.') | |
class SpeakMixin(BaseMixin): | |
"""発言用のspeakメソッドを定義""" | |
def speak(self, s): | |
print(f'{self.name}: {s}'); |
'use strict'; | |
import Hoge from './default-sub.js'; | |
let hoge = new Hoge(); | |
hoge.print(); |
################################################ | |
# unnbind key C-s, C-q in terminal | |
if [[ -t 0 ]]; then | |
stty stop undef | |
stty start undef | |
fi | |
# bind key Alt-h <- backward-kill-word | |
stty werase undef |
#!/usr/bin/sh | |
ubuntu_version() { | |
echo `cat /etc/lsb-release |grep -oP '(?<=").+(?=")'` | |
} | |
echo `ubuntu_version` |
# Fully based on the following web pages: | |
# - https://qiita.com/yapg57kon/items/58d7f47022b3e405b5f3 | |
# - https://kkamegawa.hatenablog.jp/entry/20070220/p2 | |
# thx! | |
### 接続開始時のスクリプト ### | |
if([string]::IsNullOrEmpty($args[0])) { | |
$com_list = Get-WmiObject -Class Win32_PnPSignedDriver -Filter "FriendlyName LIKE '%COM%'" | Select-Object -Property FriendlyName | |
foreach($line in $com_list) { |
この文章は、 Steve Losh 氏の記事 "A Road to Common Lisp" の翻訳です。
原文はこちらです: http://stevelosh.com/blog/2018/08/a-road-to-common-lisp/
A Road to Common Lisp (Common Lisp への道)
これまで、「最近のCommon Lispをどう学ぶとよいでしょう?」と助言を求めるメールをたくさん受け取ってきました。そこで私は、これまでメールやソーシャルメディアに投稿した全てのアドバイスを書き下すことにしました。これが誰かに有益ならば幸いです。