This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in-package stumpwm) | |
(defcommand itsumono () () | |
"Start itumono with layout" | |
(restore-from-file "~/.stumpwmrc.d/logbook.layout") | |
(restore-window-placement-rules "~/.stumpwmrc.d/logbook.rule") | |
(run-shell-command "firefox-bin") | |
(run-shell-command "logbook") | |
(run-shell-command "mikutter")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*-lisp-*- | |
(in-package :stumpwm) | |
(defmacro define-ror (name command class) | |
`(defcommand ,name () () | |
,(concatenate 'string | |
"Start " command | |
" unless it is already running, in which case focus it.") | |
(run-or-raise ,command '(:class ,class)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(custom-set-variables | |
'(inhibit-startup-screen t) | |
'(initial-scratch-message nil)) | |
(custom-set-faces) | |
(show-paren-mode t) | |
(load (expand-file-name "~/.quicklisp/slime-helper.el")) | |
(setq inferior-lisp-program "ccl") | |
(setq slime-net-coding-system 'utf-8-unix) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(custom-set-variables | |
'(custom-enabled-themes (quote (tsdh-dark))) | |
'(inhibit-startup-screen t) | |
'(initial-scratch-message nil)) | |
(custom-set-faces) | |
(set-frame-font "VL Gothic-10") | |
(setq skk-kutouten-type 'en) | |
(setq-default tab-width 4 | |
indent-tabs-mode nil) | |
(setq browse-url-browser-function 'browse-url-firefox) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) { | |
printf("hello, world\n"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 対応する括弧の強調表示 | |
(show-paren-mode t) | |
;; Emacs24標準のパッケージマネージャ | |
;; 必要なパッケージをインストール | |
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) | |
(package-initialize) | |
(when (not package-archive-contents) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <functional> | |
#include <sstream> | |
namespace my { | |
std::string argstring(int argc, char *argv[]) { | |
std::ostringstream oss; | |
for (int i=1; i<argc; ++i) | |
oss << argv[i] << ' '; | |
return std::move(oss.str()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "content-type: text/html" | |
echo "" | |
echo "<html>" | |
echo "<head>" | |
echo "<title>テスト</title>" | |
echo "</head>" | |
echo "<body>" | |
uname -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns bdb.core | |
(:require [clojure.java.io :as io]) | |
(:import (com.sleepycat.db DatabaseException | |
DatabaseConfig | |
DatabaseType | |
DatabaseEntry | |
Database | |
OperationStatus) | |
(java.io FileNotFoundException | |
IOException)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
my $r; | |
my @s; | |
$r = 1; | |
LOOP: | |
goto EXIT if ($r > 100); | |
push @s, $r; |