This file contains hidden or 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, time, sys, json | |
import numpy as np | |
import torch as th | |
import matplotlib.pyplot as plt | |
import motornet as mn | |
def main_fcn(USE_DUMMY_FUN): | |
print(f"\nUSE_DUMMY_FUN = {USE_DUMMY_FUN}\n") |
This file contains hidden or 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 | |
import time | |
import sys | |
import json | |
import numpy as np | |
import torch as th | |
import matplotlib.pyplot as plt | |
import motornet as mn |
This file contains hidden or 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 pkg_resources | |
from subprocess import call | |
packages = [dist.project_name for dist in pkg_resources.working_set] | |
call("pip install --upgrade " + ' '.join(packages), shell=True) |
This file contains hidden or 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
html { | |
font-family: verdana, sans-serif; | |
font-weight: 400; | |
font-size: 10pt; | |
height: 100%; | |
width: 100%; | |
margin: 0; | |
padding: 0; | |
min-width: 800px; | |
max-width: 800px; |
This file contains hidden or 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
x = 1:50; | |
figure | |
subplot(1,2,1) | |
hold on | |
plot(x, randn(size(x)),'bs-') | |
plot(x,sin(x),'r+-') | |
set(gca,'ylim',[-3 3]) | |
plot(x,repmat(1,size(x,2)),'r-','linewidth',2) | |
plot(x,repmat(-1,size(x,2)),'r-','linewidth',2) | |
subplot(1,2,2) |
This file contains hidden or 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
matlab2014a retina mac blurry? | |
(1) cd /Applications/MATLAB_R2014a.app/sys/java/jre/maci64 | |
(2) mv jre jre.orig | |
(3) ln -s '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home' jre |
This file contains hidden or 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
Getting afni working on Mac OSX 10.9 Mavericks, using Homebrew | |
Briefly: parts of afni (e.g. uber_subject.py) require the pyqt library ... and pyqt requires qt ... but the homebrew install of qt is currently broken on osx mavericks 10.9 ... but there is a patch ... but pyqt also requires sip ... and there is a problem where pyqt doesn't like the version of sip, in particular with a newer haswell CPU macbook pro ... but there is a fix ... and we need to add lines to our .bash_profile for afni ... and be careful if you have other python things installed since afni expects to find python things in certain locations | |
Here is a step-by-step: | |
1. install Xcode command line tools | |
xcode-select --install |
This file contains hidden or 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
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or 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
{ | |
"metadata": { | |
"name": "torqueModel" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or 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 | |
# LaTeX | |
echo "installing LaTeX" | |
sudo apt-get -qq install texlive-full texlive-fonts-extra cm-super texlive-latex-extra auctex | |
sudo texconfig paper letter | |
wget http://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts | |
chmod +x install-getnonfreefonts | |
sudo ./install-getnonfreefonts | |
sudo getnonfreefonts garamond |
NewerOlder