Skip to content

Instantly share code, notes, and snippets.

View Laica-Lunasys's full-sized avatar
🍣
SUSHI

Laica Lunasys Laica-Lunasys

🍣
SUSHI
View GitHub Profile
@pinzolo
pinzolo / gist:3663046
Created September 7, 2012 04:09
[WPF]ウィンドウをデスクトップの任意の位置に表示させる
// System.Windows.Forms と System.Drawing を参照設定に追加する必要がある。
// この例では通知ウィンドウを右下に表示させるというシナリオ
/// <summary>
/// 通知ウィンドウ表示時の画面からのマージン
/// </summary>
private const int NOTIFICATION_WINDOW_DISPLAY_MARGIN = 5;
/// <summary>
/// 指定のメッセージをユーザーに知らせるダイアログを表示する。
@border
border / mgoExample.go
Created August 27, 2012 15:33
mgo example
package main
import (
"fmt"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"time"
)
type Person struct {
@zolrath
zolrath / gist:2305333
Created April 4, 2012 20:27
tmux status line from wemux example.

For a tmux status line as seen in the example image for the wemux project: wemux

The session on the left in the example screen shot uses a patched font from the vim-powerline project. Inconsolata-dz, you beautiful creature.

To duplicate the left status line add the following lines to your ~/tmux.conf

set -g status-left-length 32
set -g status-right-length 150