Skip to content

Instantly share code, notes, and snippets.

View casallas's full-sized avatar

Juan Sebastián Casallas casallas

  • Iowa State University, Arts et Métiers ParisTech
  • Chalon-sur-Saône, France
View GitHub Profile
@casallas
casallas / ml_r.md
Created January 11, 2014 18:40
Machine Learning/Pattern Recognition/Predictive Modeling in R
@casallas
casallas / stat-check.r
Last active January 2, 2016 06:09
Checking stat-test results
# t-test
## t(df) = t.comp, p < alpha
## Compare computed t to tabulated t
qt(1-alpha, df) < t.comp
# F-test
## F(df1, df2) = f.comp, p < alpha
## Compare computed f to tabulated f
qf(1-alpha, df1, df2) < f.comp
@casallas
casallas / tmbundle_dev_installer.rb
Created March 4, 2013 04:04
Download and install dev tmbundles to textmate
#!/usr/bin/env ruby
ARGV.each do|arg|
`wget https://github.com/textmate/#{arg}.tmbundle/archive/master.zip -O #{arg}.tmbundle.zip`
`unzip #{arg}.tmbundle.zip`
`mv #{arg}.tmbundle-master ~/Library/Application\\ Support/TextMate/Managed/Bundles/#{arg}.tmbundle`
`rm #{arg}.tmbundle.zip`
end
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@casallas
casallas / moving_targets.js
Last active December 12, 2015 09:39
Fix checkBounds
function wLoad()
{
/*Calculate the svg bounds in client terms once the window is loaded*/
svgCBound = backRect.getBoundingClientRect();
/*Go to the question start so that less whitespace is shown, in case of small resolutions*/
location.href = "#questStart";
/*Play the animation*/
replay();
}
function checkBounds()
@casallas
casallas / vr-jugglua-install.sh
Last active October 11, 2015 18:57
vr-jugglua install via homebrew
#!/bin/bash
# Install homebrew (taken from http://brew.sh/)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Add brew to your path
echo "# Prepend homebrew bins to your PATH" >> ~/.bash_profile
echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/local/Library/Contributions/examples:$PATH" >> ~/.bash_profile
# Tap casallas/vr
@casallas
casallas / use_pylint.sh
Created September 18, 2012 03:12
pylint usage
# The python built-in option py_compile
python -m py_compile *.py
# Check for errors in python files
pylint -E *.py
# Check for warnings, but still ignore some aesthetic ones
pylint --include-ids=y -d W0312 -d C0103 -d C0111 -d C0301 -d C0324 -d W0614 -d W0401 *.py
WereMac:Formula juan$ brew install -v autogen
==> Downloading http://ftpmirror.gnu.org/autogen/rel5.14/autogen-5.14.tar.gz
File already downloaded in /Users/juan/Library/Caches/Homebrew
/usr/bin/tar xf /Users/juan/Library/Caches/Homebrew/autogen-5.14.tar.gz
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/autogen/5.14
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/autogen/5.14
checking build system type... x86_64-apple-darwin10.8.0
checking host system type... x86_64-apple-darwin10.8.0
checking target system type... x86_64-apple-darwin10.8.0
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
diff --git a/install.sh b/install.sh
index a90ef1b..b6698d7 100755
--- a/install.sh
+++ b/install.sh
@@ -10,57 +10,60 @@ printf "Installing NITE\n"
printf "***************\n\n"
printf "Copying shared libraries... "
-cp Bin/libXnVNite*$LIBEXT /usr/lib
-cp Bin/libXnVCNITE*$LIBEXT /usr/lib
@casallas
casallas / FindXerces.cmake.diff
Created December 13, 2011 16:21
libcitygml finds only xerces-3, make it find xerces-3.1 as well
diff --git a/CMakeModules/FindXerces.cmake b/CMakeModules/FindXerces.cmake
index c292ffb..499fbf5 100644
--- a/CMakeModules/FindXerces.cmake
+++ b/CMakeModules/FindXerces.cmake
@@ -18,13 +18,13 @@ ${XERCESC_INCLUDE_DIR}
PATH_SUFFIXES xercesc
)
-FIND_LIBRARY(XERCESC_LIBRARY NAMES xerces-c_3
+FIND_LIBRARY(XERCESC_LIBRARY NAMES xerces-c_3 xerces-c_3.1