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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
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
# zsh theme contains git, svn prompts | |
ZSH_THEME="awesomepanda" | |
# ll | |
alias ll="ls -la" | |
# emacs daemon | |
export ALTERNATE_EDITOR="" | |
export EDITOR="emacsclient -t" # $EDITOR should open in terminal | |
export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI with non-daemon as alternate |
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
cscope.* | |
*~ | |
.projectile | |
GPATH | |
GRTAGS | |
GTAGS |
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 | |
# Exit on error | |
set -x | |
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 | |
set -x | |
echo "Adding i386 architecture" | |
sudo dpkg --add-architecture i386 | |
sudp apt-get update | |
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 |
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
ssh() { | |
if [ "$(ps -p $(ps -p $$ -o ppid=) -o comm=)" = "tmux" ]; then | |
tmux rename-window "$(echo $* | cut -d . -f 1)" | |
command ssh "$@" | |
tmux set-window-option automatic-rename "on" 1>/dev/null | |
else | |
command ssh "$@" | |
fi | |
} |
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 bash | |
set -e | |
# absolute path | |
export WORKSPACE="/home/wjn/workspace" | |
export PATH=$PATH:/home/wjn/eclipse/gnutools/arm-eabi/bin | |
# CC='/home/wjn/bin/cc_args.py gcc' CXX='/home/wjn/bin/cc_args.py g++' -B \ | |
make V=1 \ |
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
;; The 'nil' configuration applies to all modes. | |
((nil . ( | |
(indent-tabs-mode . t) | |
(tab-width . 4))) | |
(java-mode . ( | |
(show-trailing-whitespace . nil) | |
(eval . (global-whitespace-mode 0)))) | |
) |
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
;;; Directory Local Variables | |
;;; For more information see (info "(emacs) Directory Variables") | |
((nil | |
(eval let* | |
((x (dir-locals-find-file default-directory)) | |
(this-directory (if (listp x) (car x) (file-name-directory x)))) | |
(unless (featurep 'swift-project-settings) | |
(add-to-list 'load-path | |
(concat this-directory "utils") |
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
#include <stdio.h> | |
#include <string.h> | |
int rulled_out[10000 / sizeof(int) + 1]; | |
int num_left; | |
// Try guess GUESS and mark the entries in RULLED_OUT that match the | |
// numbers that cannot be the secret (i.e. numbers that compared to | |
// GUESS are not COMP). | |
void update_rulled_out(int guess, int comp); |
OlderNewer