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 <bits/stdc++.h> | |
using namespace std; | |
//conversion | |
//------------------------------------------ | |
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;} | |
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();} | |
//typedef | |
//------------------------------------------ |
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
pre.commandline { | |
/*fontの指定(google web font)*/ | |
font-family: 'Source Code Pro' ; | |
/*境界との位置関係を調整*/ | |
margin: 0px 0px 0px 0px; | |
padding: 5px 0px 5px 5px; | |
border: 1px solid #7a7a7a; |
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
# color設定 | |
export LSCOLORS=exfxcxdxbxegedabagacad | |
zstyle ':completion:*' list-colors di=34 ln=35 ex=31 | |
zstyle ':completion:*:kill:*' list-colors \ | |
'=(#b) #([0-9]#)*( *[a-z])*=34=31=33' | |
# 一覧表示の形式設定 | |
zstyle ':completion:*' group-name '' | |
zstyle ':completion:*:descriptions' format '%BCompleting%b %U%d%u' |
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
body { | |
font-family: Verdana "游ゴシック" YuGothic "ヒラギノ角ゴ ProN W3" "Hiragino Kaku Gothic ProN" "メイリオ" Meiryo sans-serif; | |
font-size: 14px; | |
line-height: 22px; | |
word-wrap: break-word; | |
} | |
.entry-content h4 { | |
font-size: 100%; | |
border-bottom: 1px solid #426579; |
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
-- | The default pretty printing options, as seen in 'dynamicLog'. | |
defaultPP :: PP | |
defaultPP = PP { ppCurrent = wrap "[" "]" | |
, ppVisible = wrap "<" ">" | |
, ppHidden = id | |
, ppHiddenNoWindows = const "" | |
, ppUrgent = id | |
, ppSep = " : " | |
, ppWsSep = " " | |
, ppTitle = shorten 80 |
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
import XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run | |
main :: IO () | |
main = do | |
left_bar <- spawnPipe $ "dzen2 -x 0 -w 400 -ta l " ++ dzen_style | |
spawn $ "conky -c ~/.xmonad/conky_dzen_laptop | dzen2 -x 400 -ta r " ++ dzen_style | |
xmonad defaultConfig { terminal = "urxvt" |
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
background no | |
out_to_console yes | |
out_to_x no | |
# Update interval in seconds | |
update_interval 1 | |
TEXT | |
^i(/home/neko/.xmonad/icon/cpu.xbm) ^fg(\#ffffff)${cpu}%^fg() \ | |
^i(/home/neko/.xmonad/icon/mem.xbm) ^fg(\#ffffff)${memperc}%^fg() \ | |
^i(/home/neko/.xmonad/icon/wifi_01.xbm) ${wireless_essid wlan0} \ |
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
import qualified Data.Map as M | |
tel_map = M.fromList [("isono","090-xxxx-0000") | |
,("fuguta","090-xxxx-1111") | |
,("namino","090-xxxx-2222")] |
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
keys :: XConfig Layout -> M.Map (KeyMask, KeySym) (X ()) | |
keys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $ | |
[ ((modMask .|. shiftMask, xK_Return), spawn $ XMonad.terminal conf) | |
, .. | |
] | |
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
customKeys | |
:: (XConfig Layout -> [(KeyMask, KeySym)]) | |
-> (XConfig Layout -> [((KeyMask, KeySym), X())]) | |
-> XConfig Layout | |
-> Map (keyMask, KeySym) (X ()) |
OlderNewer