Skip to content

Instantly share code, notes, and snippets.

@KingC100
KingC100 / xml
Last active March 9, 2017 08:41
DarkSouls_Clash
障害が発生しているアプリケーション名: DarkSoulsIII.exe、バージョン: 1.10.0.1、タイム スタンプ: 0x588f5aca
障害が発生しているモジュール名: DarkSoulsIII.exe、バージョン: 1.10.0.1、タイム スタンプ: 0x588f5aca
例外コード: 0xc0000005
障害オフセット: 0x000000000174beb2
障害が発生しているプロセス ID: 0x1af0
障害が発生しているアプリケーションの開始時刻: 0x01d2979d66e4fc2b
障害が発生しているアプリケーション パス: E:\Program Files (x86)\Steam\steamapps\common\DARK SOULS III\Game\DarkSoulsIII.exe
障害が発生しているモジュール パス: E:\Program Files (x86)\Steam\steamapps\common\DARK SOULS III\Game\DarkSoulsIII.exe
レポート ID: 5d06a773-9123-4739-b37a-8037163f9f16
障害が発生しているパッケージの完全な名前:
(defun hello-request-handler (path header params)
(if (equal path "greeting")
(let ((name (assoc 'name params)))
(format t "HTTP/1.0 200 OK~2%")
(if (not name)
(princ "<form>What is your name?<input name='name' /></form>")
(format t "Nice to meet you, ~a!" (cdr name))))
(princ "Sorry... I don't know that page.")))
@KingC100
KingC100 / gist:1b256cf3eab0aa37f714
Last active June 17, 2017 17:51
dot->png use to sbcl.
(defun dot->png (fname thunk)
(with-open-file (*standard-output*
fname
:direction :output
:if-exists :supersede)
(funcall thunk))
(shell (concatenate 'string "dot -Tpng -O " fname)))
(defun shell (x)
(run-program "/bin/sh" (list "-c" x) :output t))
@KingC100
KingC100 / gist:4bbe0a688f3df9230d11
Created January 31, 2016 13:03
The variable X is defined but never used.
style-warning:
The variable X is defined but never used.
==>
#'(LAMBDA (X) (ZEROP (RANDOM *COP-ODDS*)))
@KingC100
KingC100 / gist:59201e36f075d627898a
Last active January 31, 2016 13:21
make-city-edges
(defun make-city-edges ()
(let* ((nodes (loop for i from 1 to *node-num*
collect i))
(edge-list (connect-all-islands nodes(make-edge-list)))
(cops (remove-if-not (lambda (x) ;; xはremove-if-notへの引数として使用する。
(zerop (random *cop-odds*)))
edge-list)))
(add-cops (edges-to-alist edge-list) cops)))
@KingC100
KingC100 / gist:3b7e0dad2c120781ef5a
Created January 31, 2016 12:49
Package EXT does not exist.
1 compiler notes:
read-error:
READ error during COMPILE-FILE:
Package EXT does not exist.
Compilation failed.
@KingC100
KingC100 / gist:3c365b213000e30414b7
Created April 28, 2015 12:10
tweets.csvを形態素解析するあれ
package myshowtime;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import org.atilika.kuromoji.Token;
import org.atilika.kuromoji.Tokenizer;
@KingC100
KingC100 / gist:69299f74e8d15a492b29
Created January 10, 2015 23:56
Invalid URL or resource not found
Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: Invalid URL: Invalid URL or resource not found
at javafx.scene.image.Image.validateUrl(Image.java:1089)
at javafx.scene.image.Image.<init>(Image.java:598)
at fxerycton.FXEryctonController.lambda$initialize$1(FXEryctonController.java:318)
at fxerycton.FXEryctonController$$Lambda$77/443960744.changed(Unknown Source)
at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
at javafx.scene.control.TextInputControl$TextProperty.fireValueChangedEvent(TextInputControl.java:1123)
at javafx.scene.control.TextInputControl$TextProperty.markInvalid(TextInputControl.java:1127)
at javafx.scene.control.TextInputControl$TextProperty.invalidate(TextInputControl.java:1066)
@KingC100
KingC100 / gist:84adc17e66206d09c6c1
Last active August 29, 2015 14:13
URL解決できないやつ
// import略
@FXML TextField txb_Own_1;
@FXML TextField txb_Own_2;
ReadContents rc = new ReadContents();
@Override
public void initialize(URL url, ResourceBundle rb) {
/***
* アイコンの自動更新処理
@KingC100
KingC100 / gist:8578247
Created January 23, 2014 13:14
ビッグで閉まる
import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.ParseException;
/**
* 入力されたBigDecimal型の数値が
* 正しい暦日のyyyy/MM/ddであるかチェックします。
*
* @author kiichi
*/