Skip to content

Instantly share code, notes, and snippets.

$ 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
http://aligach.net/diary/20120716.html
git や gem 関係で必要なものも放っておくと出力(コピー)される*1ので、_config.yml の exclude: に定義しておくとよい
Textile は使わなくても RedCloth のインストールは必須で、かつ正しく依存性解決してくれない
ここはだいぶ変だと思う*2
excludeの定義は例えばこんな感じ
exclude:
- .git
!!! xml
version = ''
title = ''
description = ''
keywords = ''
author = ''
host = ''
updated = ''
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/'
/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
function helloWorld() {
console.log("Hello World");
}
[ 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]
@w3ddd
w3ddd / regex_multiline.py
Created February 20, 2012 08:28
python
#http://stackoverflow.com/questions/587345/python-regular-expression-matching-a-multiline-block-of-text
re.compile(r"^(.+)\n((?:\n.+)+)", re.MULTILINE)
#-*- coding:utf8 -*-
s = str("日本語")
try:bytes(s,"utf8")
except:print("error")
try:str(s)
except:print("error2")
@w3ddd
w3ddd / mocha.html
Created February 13, 2012 07:51
mocha html
<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>