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
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' formats '(%s)-[%b]' | |
zstyle ':vcs_info:*' actionformats '(%s)-[%b|%a]' | |
precmd () { | |
psvar=() | |
LANG=en_US.UTF-8 vcs_info | |
[[ -n "$vcs_info_msg_0_" ]] && psvar[1]="$vcs_info_msg_0_" | |
} | |
autoload -Uz is-at-least | |
if is-at-least 4.3.10; then |
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
% emerge -uvp world | |
!!! Your current profile is deprecated and not supported anymore. | |
!!! Use eselect profile to update your profile. | |
!!! Please upgrade to the following profile if possible: | |
default/linux/amd64/13.0/no-multilib |
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
#!/usr/bin/env sh | |
HEAEDERSROOT=/lib/modules/`uname -r`/build | |
sudo ln -s ${HEAEDERSROOT}/include/generated/uapi/linux/version.h ${HEAEDERSROOT}/include/linux/version.h |
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
(defun kernel-version()(replace-regexp-in-string "\n+$" "" (shell-command-to-string "uname -r"))) | |
(message "kernel version is %s" (kernel-version)) |
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
--- llvm-9999/docs/Makefile.sphinx 2012-12-31 05:16:20.630466221 +0900 | |
+++ llvm-9999/docs/Makefile.sphinx.edited 2012-12-31 05:15:41.410467184 +0900 | |
@@ -3,7 +3,7 @@ | |
# You can set these variables from the command line. | |
SPHINXOPTS = | |
-SPHINXBUILD = sphinx-build | |
+SPHINXBUILD = sphinx-build-2.7 | |
PAPER = | |
BUILDDIR = _build |
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
{-# LANGUAGE ScopedTypeVariables #-} | |
import Control.Parallel.OpenCL | |
import Foreign( castPtr, nullPtr, sizeOf ) | |
import Foreign.C.Types( CFloat,CDouble ) | |
import Foreign.Marshal.Array( newArray, peekArray ) | |
import System.IO | |
import System.Exit | |
import qualified Control.Exception as E | |
import Control.Monad | |
import Data.List |
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
# Copyright 2012 cosmo | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI=5 | |
# ebuild generated by cosmo | |
CABAL_FEATURES="lib profile haddock hoogle hscolour" | |
inherit haskell-cabal git-2 |
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
$ fay --no-ghc redirect.hs --html-wrapper |
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
;; Prefixのghciとシステムのghciを切り替える | |
(when (locate-library "haskell-mode") | |
(global-set-key "\C-\M-h" | |
(lambda () (interactive) | |
(setq haskell-program-name "~/gentoo/usr/bin/ghci") | |
(message "ghci change to ~/gentoo/usr/bin/ghci"))) | |
(global-set-key "\C-\M-c" | |
(lambda () (interactive) | |
(setq haskell-program-name "/usr/bin/ghci") | |
(message "ghci change to /usr/bin/ghci")))) |
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
--- nested_quote.rb.orig 2012-10-02 00:24:24.000000000 +0900 | |
+++ nested_quote.rb 2012-10-02 06:51:49.000000000 +0900 | |
@@ -179,6 +179,13 @@ | |
Plugin.create :nested_quote do | |
command(:copy_tweet_url, | |
name: 'ツイートのURLをコピー', | |
+ show_face: Proc.new{ |m| | |
+ whotwi = m.messages.first.message.idname | |
+ if m.messages.first.message.to_s.length > 20 then | |
+ show_message = m.messages.first.message.to_s[0, 20] + "..." |