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
/** | |
* This constraint consists of a single constraint equation that enforces that | |
* a unit vector v1 fixed to one body (the "base body") must maintain a fixed | |
* angle theta with respect to a unit vector v2 fixed on the other body (the | |
* "follower body"). This can be done with a single constraint equation as long | |
* as theta is sufficiently far away from 0 and +/-Pi (180 degrees), with the | |
* numerically best performance at theta=Pi/2 (90 degrees). | |
*/ | |
class ConstantAngleConstraint : public OpenSim::Constraint { | |
OpenSim_DECLARE_CONCRETE_OBJECT(ConstantAngleConstraint, Constraint); |
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
#!/usr/bin/env python | |
import numpy as np | |
import pylab as pl | |
import unittest | |
from scipy.interpolate import CubicSpline | |
class Delay: | |
"""Implements a signal delay. |
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
schtasks /create /tn "PeriodicLockScreen" /tr "rundll32.exe user32.dll, LockWorkStation" /sc HOURLY |
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 os | |
def readMotionFile(filename): | |
""" Reads OpenSim .sto files. | |
Parameters | |
---------- | |
filename: absolute path to the .sto file |
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
ldd sconestudio.exe | grep "=> /" | grep -v "WINDOWS" | grep -v "SCONE" | awk '{print $3}' | xargs -I '{}' cp -v '{}' . |
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
#!/usr/bin/env bash | |
set -xeuo pipefail | |
# install dependencies | |
# sudo apt-get --yes install git cmake cmake-curses-gui \ | |
# freeglut3-dev libxi-dev libxmu-dev \ | |
# liblapack-dev swig python-dev \ | |
# openjdk-8-jdk |
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 | |
#SBATCH -J opensim-core_build | |
#SBATCH -J ./opensim-core_build | |
#SBATCH -o ./opensim-core_build.out | |
#SBATCH -e ./opensim-core_build.err | |
#SBATCH -N 1 # number of nodes | |
#SBATCH -n 38 # number of cores | |
#SBATCH --mem 28G # memory pool for all cores | |
#SBATCH --mail-user=dimitar.stanev@epfl.ch |
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
#!/usr/bin/env bash | |
# build BTKCore from source | |
set -xeuo pipefail | |
# install dependencies in case they are missing | |
# sudo apt-get --yes install git cmake swig python3-dev python3-pip | |
# pip3 install numpy --user |
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
#!/usr/bin/env python3 | |
import re | |
import pytube | |
import argparse | |
parser = argparse.ArgumentParser(description="Youtube to MP3") | |
parser.add_argument("url") | |
parser.add_argument( |