This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first, get ffmpeg | |
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg | |
# next, configure it | |
cd ffmpeg | |
./configure --disable-yasm | |
# build it (-j<# of cores>) | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Once XUnit is installed, you can run this test by navigating to this directory and typing "runtests" into your MATLAB prompt. | |
% | |
% Output Variable name should be "test_suite" | |
% | Make sure the test name either begins or ends with "test" | |
% | | | |
% | | | |
function test_suite = testMyFunctions | |
initTestSuite; | |
% Here is the first test! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
project(CTest-Example) | |
add_executable(CTest-Example CTest-Example) | |
enable_testing() | |
add_test(NAME YeahhhTest COMMAND ${CMAKE_COMMAND} -E echo 'Yeahh') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
Perm () { | |
A=$1 | |
i=0 | |
while [ $i -lt ${#A} ]; do y[$i]=${A:$i:1}; i=$((i+1));done | |
s=`shuf -e ${y[@]}` | |
newString='' | |
s=$(sed 's|\ ||g' <<< $s) | |
i=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
include(ExternalProject) | |
include(superbuild.cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Download minted.sty from here: | |
wget http://mirrors.ctan.org/macros/latex/contrib/minted.zip | |
unzip minted.zip | |
cd minted | |
make | |
sudo mkdir /usr/share/texmf-texlive/tex/latex/minted | |
cp minted.sty /usr/share/texmf-texlive/tex/latex/minted/minted.sty | |
#Download xcolors from here: | |
wget http://mirrors.ctan.org/macros/latex/contrib/xcolor.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BASEDIR=`pwd` | |
mkdir python-3.4.2 && cd python-3.4.2 | |
PYTHONDIR=`pwd` | |
wget https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tar.xz | |
tar xf Python-3.4.2.tar.xz | |
mkdir build && mkdir install && cd build | |
CFLAGS=-fPIC CPPFLAGS=-fPIC $PYTHONDIR/Python-3.4.2/configure --prefix=$PYTHONDIR/install | |
make | |
make install | |
cd $BASEDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basedir=`pwd` | |
echo $basedir | |
installdir=llvm-clang-install | |
mkdir $installdir | |
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm | |
mkdir llvm-build && cd llvm-build | |
$basedir/llvm/configure --prefix=$basedir/$installdir && make -j8 && make install | |
cd $basedir | |
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import os | |
import sys | |
from itertools import izip | |
import collections | |
import errno | |
""" | |
This script takes two files: a list of form 'filename,slice#', and another | |
tab-delimited list of mean values for each ROI. Every line should line up. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
mkdir python2710 && cd python2710 | |
wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz --no-check-certificate | |
gunzip Python-2.7.10.tgz | |
tar xf Python-2.7.10.tar | |
cd Python-2.7.10 | |
./configure | |
make |
OlderNewer