Skip to content

Instantly share code, notes, and snippets.

# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname='arrow'
pkgver=0.12.1
pkgrel=10
pkgdesc="A columnar in-memory analytics layer for big data."
arch=('x86_64')
url="https://arrow.apache.org"
license=('Apache')
depends=('boost-libs' 'protobuf' 'rapidjson' 'google-glog')
@andrewseidl
andrewseidl / recurse-includes.sh
Last active April 11, 2017 22:00
Given one header, recursively find all other files it #includes
#!/bin/bash
set -e
START="folly/SharedMutex.h"
ALL=$START
NEW=""
# could simplyify with `sort -t' ' -u`
while ! diff -q <(echo $ALL | tr ' ' '\n' | sort -u) <(echo $NEW | tr ' ' '\n' | sort -u) >/dev/null ; do
#!/usr/bin/env bash
# `hub` is GitHub's Hub: hub.github.com
# can be replaced with regular `git`, but must use full repository URLs
function initPaths {
mkdir -p merge && cd merge
hub clone projectchrono/chrono
hub clone projectchrono/chrono-parallel
}

                 ##            .          
           ## ## ##           ==          
        ## ## ## ## ##       ===
     /""""""""""""""""""\___/ ===-
~~~ {~~ ~~~~ ~~~ ~~~ ~~ ~~ ~ /  ===- ~~~
     \       o            __/           
      \____/           __/
       \______________/
@andrewseidl
andrewseidl / bullet.diff
Created April 29, 2015 19:41
Chrono/Bullet differences
Only in bullet-real: btBulletDynamicsCommon.h
Only in bullet-real: Bullet-C-Api.h
diff -r bullet-real/BulletCollision/BroadphaseCollision/btBroadphaseProxy.h bullet-chrono/BulletCollision/BroadphaseCollision/btBroadphaseProxy.h
51a52
> BARREL_SHAPE_PROXYTYPE, //***ALEX***
60a62,64
> // for 2d collision between polylines:
> ARC_SHAPE_PROXYTYPE, //***ALEX***
> SEGMENT_SHAPE_PROXYTYPE, //***ALEX***
diff -r bullet-real/BulletCollision/BroadphaseCollision/btDbvtBroadphase.h bullet-chrono/BulletCollision/BroadphaseCollision/btDbvtBroadphase.h
clippy.cow from: https://gist.github.com/danopia/3550035
______________________________________
/ It looks like you're trying to run a \
\ container /
--------------------------------------
\ ___
\ / \
\ / \
/ \
@andrewseidl
andrewseidl / AsciiDocker.txt
Created April 10, 2015 07:01
Ascii Docker
## .
## ## ## ==
## ## ## ## ## ===
/""""""""""""""""""\___/ ===-
~~~ {~~ ~~~~ ~~~ ~~~ ~~ ~~ ~ / ===- ~~~
\ o __/
\____/ __/
\______________/
| |

% ClangFormat All The Things % Andrew Seidl % 27 February 2015

ClangFormat All The Things

ClangFormat All The Things

ClangFormat

  • C/C++/ObjC source code formatter

In the current directory, find all files ending in .(cpp|cu|glsl|h) that are not named *FontData* and are not in a path matching *thirdparty*. Run clang-format on each of these files, using the format specified in .clang-format.

Chrono-Parallel

Linux/GNU find:

find . \( -regex '.*\.\(cpp\|cu\|glsl\|h\)' ! -iname '*FontData*' ! -ipath '*thirdparty*' \) -exec clang-format -i '{}' \;

OSX/BSD find: