Skip to content

Instantly share code, notes, and snippets.

@sakamotodesu
sakamotodesu / practical_common_lisp.md
Last active August 20, 2021 00:29
Practical Common Lisp for Mac

List in a boxが動かなかったのでroswellで格闘中。

roswellセットアップ

  • macos 10.15.7

やったこと

結局何が必要だったわからんな。brewでインストールされたemacsだと動いた。

Installable .Net Framework

OS 2.0 3.0 3.5 4.0 4.5 4.6
Vista
7
8
8.1
10
@sakamotodesu
sakamotodesu / .bashrc
Created November 20, 2015 00:18
disable terminal lock
stty stop undef
autodetach on
bell_msg "^G"
defkanji utf-8
defencoding utf-8
encoding utf-8 utf-8
defscrollback 10000
escape ^Xx
startup_message off
vbell off
caption always "%{= wb} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wk} [%l] %{=b wb}%y/%m/%d(%D) %{=b wm}%c"
@sakamotodesu
sakamotodesu / dot.nodoka
Last active August 26, 2016 04:13
のどか dvorak設定
#
#5. ユーザーカスタム設定
# 以下に、ご自身の設定を御書き下さい。この行は削除可能です。
if ( USEdvorak109)
include "109.nodoka"
include "contrib/DVORAKon109.nodoka"
endif
@sakamotodesu
sakamotodesu / gist:ced30ae690b837ef3f42
Created July 31, 2014 00:11
4^9999までの計算時間。該当は4^1と4^4だけ。
Days : 1
Hours : 8
Minutes : 56
Seconds : 41
Milliseconds : 837
Ticks : 1186018378518
TotalDays : 1.37270645661806
TotalHours : 32.9449549588333
TotalMinutes : 1976.69729753
TotalSeconds : 118601.8378518
import scala.math.BigDecimal
import scala.util.Random
object Main {
def main(args: Array[String]) {
Random.shuffle(List.range(1, args(0).toInt)).par.foreach(x=>println(x + " : " + pow4div3(x)))
}
def pow4div3(n: Int) = {
def rec(m: BigDecimal):Boolean ={
import java.io.IOException;
import java.net.URL;
import java.util.jar.Attributes;
import java.util.jar.JarFile;
import java.util.jar.Manifest;
public class FromManifest {
public String getVersion() {
String version = "null";
@sakamotodesu
sakamotodesu / MyTailerListener.java
Created August 22, 2013 22:18
TailerListenerTest
public class MyTailerListener extends TailerListenerAdapter {
private String pre = "";
@Override
public void handle(String line) {
if (pre.equals(line)) {
System.out.println("dup : " + line);
}
@sakamotodesu
sakamotodesu / FileExist.java
Created August 20, 2013 00:11
hamcrest customized matcher
public class FileExist extends TypeSafeMatcher<File> {
private final boolean isEexpectedResult;
private File inspected;
public FileExist(boolean exceptedResult) {
this.isEexpectedResult = exceptedResult;
}
@Override