Skip to content

Instantly share code, notes, and snippets.

@adzenith
adzenith / git-line-add-delete-per-day.sh
Last active June 6, 2018 14:27 — forked from yuan3y/git-line-add-delete-per-day.sh
Get number of lines added and deleted per day from your git repo
#!/bin/bash
usage() {
echo "Usage: $0 BRANCH NUM_DAYS"
exit 1
}
ds() {
date --date="$1 days ago" +%Y-%m-%d
}
@adzenith
adzenith / app_timer.patch
Last active February 11, 2016 22:50
Patch for app_timer.c
diff --git i/nordic_sdk/libraries/timer/app_timer.c w/nordic_sdk/libraries/timer/app_timer.c
index 9dfcd284..e641c779 100755
--- i/nordic_sdk/libraries/timer/app_timer.c
+++ w/nordic_sdk/libraries/timer/app_timer.c
@@ -368,6 +368,7 @@ static void timer_timeouts_check(void)
{
timer_node_t * p_timer;
timer_node_t * p_previous_timer;
+ uint32_t total_ticks_elapsed;
uint32_t ticks_elapsed;
==> OS X Release:
10.11
==> OS X Release with Patchlevel:
10.11.3
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p645
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
2015-09-16 07:17:09 -0400
./configure
--disable-dependency-tracking
--prefix=/usr/local/Cellar/arpack/3.2.0/libexec
--with-blas=-L/usr/local/opt/veclibfort/lib -lvecLibFort
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
2015-01-22 14:22:18 -0500
./configure
--prefix=/usr/local/Cellar/latex2html/2012
--without-mktexlsr
--with-texpath=/usr/local/Cellar/latex2html/2012/share/texmf/tex/latex/html
creating cache ./config.cache
checking for perl... /usr/bin/perl
checking whether #! works in shell scripts... yes
diff --git i/orocos_kdl/tests/CMakeLists.txt w/orocos_kdl/tests/CMakeLists.txt
index 4f155732..7e9e15d1 100644
--- i/orocos_kdl/tests/CMakeLists.txt
+++ w/orocos_kdl/tests/CMakeLists.txt
@@ -22,7 +22,6 @@ IF(ENABLE_TESTS)
SET(TESTNAME "solvertest")
SET_TARGET_PROPERTIES( solvertest PROPERTIES
COMPILE_FLAGS "${CMAKE_CXX_FLAGS_ADD} ${KDL_CFLAGS} -DTESTNAME=\"\\\"${TESTNAME}\\\"\" ")
- ADD_TEST(solvertest solvertest)
require 'formula'
class Torch < Formula
homepage 'http://www.torch.ch/'
url 'https://github.com/smcgill3/torch/archive/315977ada2266233f8f98137e755b57625ba669d.tar.gz'
sha1 'df98713f664d58287cc6e5380fd17807e8f4798a'
version '7.0'
depends_on 'lua'
depends_on 'pkg-config'
@adzenith
adzenith / orocos_kdl.rb
Last active December 16, 2015 01:19
Homebrew formula for Orocos KDL
require 'formula'
class OrocosKdl < Formula
homepage 'http://www.orocos.org/kdl'
url 'http://git.mech.kuleuven.be/?p=robotics/orocos_kinematics_dynamics.git;a=snapshot;h=c8301d2719690703f405ce9a286db897e32a8dca;sf=tgz'
sha1 ''
head 'http://git.mech.kuleuven.be/robotics/orocos_kinematics_dynamics.git'
version '1.1.99'
depends_on 'cmake' => :build
@adzenith
adzenith / Default (OSX).sublime-mousemap
Created June 23, 2012 19:28
Sublime Text 2 better mouse handling
[
// Basic drag select
{
"button": "button1", "count": 1,
"press_command": "drag_select_callback"
},
{
// Select between selection and click location
"button": "button1", "modifiers": ["shift"],
"press_command": "drag_select_callback",