This file contains hidden or 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
$ xsetwacom --list devices | |
$ xsetwacom --get "Wacom Intuos3 9x12 stylus" Area | |
$ xsetwacom --set "Wacom Intuos3 9x12 stylus" Area "0 0 6096 4572" | |
$ xsetwacom --set "Wacom Intuos3 9x12 stylus" Area "0 30000 10000 45720" | |
http://ubuntuforums.org/showthread.php?t=1461978 |
This file contains hidden or 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
http://aligach.net/diary/20120716.html | |
git や gem 関係で必要なものも放っておくと出力(コピー)される*1ので、_config.yml の exclude: に定義しておくとよい | |
Textile は使わなくても RedCloth のインストールは必須で、かつ正しく依存性解決してくれない | |
ここはだいぶ変だと思う*2 | |
excludeの定義は例えばこんな感じ | |
exclude: | |
- .git |
This file contains hidden or 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
!!! xml | |
version = '' | |
title = '' | |
description = '' | |
keywords = '' | |
author = '' | |
host = '' | |
updated = '' |
This file contains hidden or 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
http = reqiore 'http' | |
http.createServer((request, response)-> | |
response.writeHead 200, 'Content-Type': 'text/plain' | |
response.end 'Hello World' | |
).listen(8124) | |
console.log 'Server running at http://127.0.0.1:8124/' |
This file contains hidden or 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
/etc/init.d/skeleton | |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: skeleton | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be |
This file contains hidden or 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
function helloWorld() { | |
console.log("Hello World"); | |
} |
This file contains hidden or 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
[ print([x,y]) for x in [1,2,3,4] for y in [5,6,7,8] ] | |
""" | |
[1, 5] | |
[2, 5] | |
[3, 5] | |
[4, 5] | |
[1, 6] | |
[2, 6] | |
[3, 6] |
This file contains hidden or 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
#http://stackoverflow.com/questions/587345/python-regular-expression-matching-a-multiline-block-of-text | |
re.compile(r"^(.+)\n((?:\n.+)+)", re.MULTILINE) |
This file contains hidden or 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
#-*- coding:utf8 -*- | |
s = str("日本語") | |
try:bytes(s,"utf8") | |
except:print("error") | |
try:str(s) | |
except:print("error2") |
This file contains hidden or 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
<html> | |
<head> | |
<title>Mocha</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<link rel="stylesheet" href="style.css" /> | |
<script src="/jquery.js" type="text/javascript"></script> | |
<script src="/mocha.js"></script> | |
<script src="/expect.js"></script> | |
<script src="/test.js"></script> | |
<script>mocha.setup('bdd')</script> |
NewerOlder