Skip to content

Instantly share code, notes, and snippets.

@rcmdnk
rcmdnk / a.sh
Created December 15, 2014 20:21
# Execution part {{{
_s_is_exec=1
_sf_check_args_first () { # {{{
while [ $# -gt 0 ];do
case $1 in
"-h"|"-N"|"-m"|"-p"|"-F"|"-v" ) _s_is_exec=2;shift;;
"-n" ) _s_is_exec=0;shift;;
"-c" ) _SENTAKU_CHILD=1;shift;;
* )break;;
esac
diff --git a/.themes/octogray b/.themes/octogray
index 69e224c..a519ddb 160000
--- a/.themes/octogray
+++ b/.themes/octogray
@@ -1 +1 @@
-Subproject commit 69e224c5def49917f7fe5527532f8cb50614e81f
+Subproject commit a519ddbdb6a3b40e48ef7713c3be5d15f853b880
@rcmdnk
rcmdnk / a.cxx
Created December 15, 2014 19:03
#include <iostream>
for(int i=0;i<10;i++){
std::cout << "codeblock" << std::endl;
}
@rcmdnk
rcmdnk / a.rb
Created December 15, 2014 18:05
## -- Misc Configs -- ##
stash_dir = "_stash" # directory to stash posts for speedy generation
full_stash_dir = "#{source_dir}/#{stash_dir}" # full path for stash dir
stash_root_dir = "_stash_root" # directory to stash pages (in /source/)
full_stash_root_dir = "#{source_dir}/#{stash_root_dir}" # full path for stash_root dir
root_stashes = ['Your-Page'] # directories to be stashed in /source/
# usage rake isolate[my-post]
desc "Move all other posts than the one currently being worked on to a temporary stash location (stash) so regenerating the site happens much more quickly."
...
<head>
...
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
...
<script src="/javascripts/utils.js"></script>
</head>
...
@rcmdnk
rcmdnk / cVimrc
Last active January 30, 2018 12:37
settings for cVim (obsolete version, new version is: https://gist.github.com/rcmdnk/6f9c3c0f8043391317e1a9cc3e0cafcb)
" This is old settings, new one is following url:
" https://gist.github.com/rcmdnk/6f9c3c0f8043391317e1a9cc3e0cafcb
"Settings
"set nohud
"set autohidecursor
"set noinsertmappings
set smoothscroll
set autoupdategist
(*_*) $ ./read_test.sh
parent start
tty=/dev/ttys000, PPID=54841, PID=82861, BASHPID=82861
sub start
tty=/dev/ttys000, PPID=54841, PID=82861, BASHPID=82861
=============================
read in sub:
sub input:a
# ssty echo:
## if trap is defined in all:
stty echo is disabled at pipe, pipe|$()
## No traps
stty echo is disabled at pipe and pipe|$()
# if C-c is called in the function:
## Direct call
C-c is given only to function, and return.
In the parent function/shell, process is proceeded as usual.
## Subshell $()
C-c is given to function, and also exit.
,P