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
;; hack that enable major mode for newly created buffer according to `auto-mode-alist' | |
(defadvice set-buffer-major-mode (after new-buffer-auto-mode activate compile) | |
"Select major mode for newly created buffer. | |
Compare the `buffer-name' the entries in `auto-mode-alist'." | |
(with-current-buffer (ad-get-arg 0) | |
(if (and (buffer-name) (not buffer-file-name)) | |
(let ((name (buffer-name))) | |
;; Remove backup-suffixes from file name. | |
(setq name (file-name-sans-versions name)) |
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
/* | |
* Nekoboard code | |
* | |
* by: Yuriy Pitomets | |
* license: GNU GPL v. 3 | |
* | |
*/ | |
const char Key_LEFT_CTRL = 0x80; |
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
;; eshell prompt | |
(setq eshell-prompt-function | |
(lambda () | |
(let ((user-uid-face (if (zerop (user-uid)) | |
'((t (:inherit (eshell-ls-missing eshell-prompt bold)))) | |
'((t (:inherit (eshell-ls-directory eshell-prompt bold))))))) | |
(concat | |
(propertize (or (ignore-errors | |
(format "[%s] " |
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
#!/bin/bash | |
# manage Tmux | |
if [ -n "$TMUX" ]; then # in tmux | |
if [ -n "$COLORTERM" ]; then # in rich VT | |
export TERM=xterm-256color-italic | |
fi | |
elif tmux list-sessions &> /dev/null; then | |
tmux attach &> /dev/null # try to attach |
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
20:35 Mon 2014-11-03 ~ ] cave resolve dev-scm/darcs | |
Done: 616 steps | |
These are the actions I will take, in order: | |
s dev-haskell/array:0.4.0.1::haskell 0.4.0.1 to ::installed | |
"Mutable and immutable arrays" | |
doc -hscolour -profile build_options: symbols=compress jobs=9 dwarf_compress -recommended_tests -trace work=tidyup | |
Reasons: dev-scm/darcs-2.8.4-r1:2.8.4::haskell |
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
-- Code challenge. | |
{-# LANGUAGE NPlusKPatterns #-} | |
import Control.Monad (guard, liftM) | |
revert :: Int -- | digit | |
-> Int -- | with radix | |
-> Int -- | reverse digit | |
revert d r = revert' 0 d |
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
pitometsu |
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
#!/bin/sh | |
set -e | |
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" | |
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt | |
> "$RESOURCES_TO_COPY" | |
install_resource() | |
{ |
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
#!/bin/sh | |
# | |
# mogen.sh | |
# | |
# Created by Jean-Denis Muys on 24/02/11. | |
# Modified by Ryan Rounkles on 15/5/11 to use correct model version and to account for spaces in file paths | |
# Edited by MANIAK_dobrii for mogenerator demo | |
# Updated by Pitomets Yuriy on 22/02/14 to be used in Masjid Timetable project. | |
# Tip: |
OlderNewer