start new:
tmux
start new with session name:
tmux new -s myname
# function processes each sub-directory and then adds each source file in directory | |
# each function should cascade back upward in setting variables so that the bottom directory | |
# adds its source first, and then the level above it adds its source and passes both up, and so on... | |
function( recursively_include_src which_directory return_variable ) | |
if( ${return_variable} STREQUAL "headers" ) | |
set( file_extension ".h" ) | |
else( ${return_variable} STREQUAL "headers" ) | |
set( file_extension ".c" ) | |
endif( ${return_variable} STREQUAL "headers" ) |
rsync (Everyone seems to like -z, but it is much slower for me)
OS=`echo \`uname\` | tr '[:upper:]' '[:lower:]'` | |
AURL="https://gist.githubusercontent.com/hightemp/5071909/raw/" | |
ANAME=".bash_aliases" | |
TMPAPATH="/tmp/$ANAME" | |
HOMEAPATH="~/$ANAME" | |
[ "$OS" = "windowsnt" ] && OS_WIN="yes" | |
[ "$OS" = "darwin" ] && OS_MAC="yes" | |
[ "$OS" = "linux" ] && OS_LIN="yes" |
git diff -p \ | |
| grep -E '^(diff|old mode|new mode)' \ | |
| sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \ | |
| git apply |
#include "glParticleRenderer.h" | |
#include "particles.h" | |
#include <assert.h> | |
#include "gl_includes.h" | |
namespace particles | |
{ | |
void GLParticleRenderer::generate(ParticleSystem *sys, bool) | |
{ |
Component { | |
id: reusableComponent | |
Item { | |
property string value: "Hello" | |
} | |
} | |
property Item itemA: reusableComponent.createObject(this) | |
property Item itemB: reusableComponent.createObject(this) | |
Text { |
#!/usr/bin/env sh | |
NDK_ROOT="${1:-${NDK_ROOT}}" | |
if [ ! -d "${WD}/android-cmake" ]; then | |
echo 'Cloning android-cmake' | |
git clone https://github.com/taka-no-me/android-cmake.git | |
fi | |
### ABI setup | |
#ANDROID_ABI=${ANDROID_ABI:-"armeabi-v7a with NEON"} |