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
conda config --add envs_dirs ~/Projects/.envs | |
conda config --set env_prompt '({name})' |
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
alias arm_brew="eval '$(/opt/homebrew/bin/brew shellenv)'" | |
alias intel_brew="eval '$(/usr/local/bin/brew shellenv)'" |
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 types | |
class VirtualModule(types.ModuleType): | |
def __init__(self, module_name, sub_modules): | |
super().__init__(module_name) | |
try: | |
import sys | |
sys.modules[module_name] = self | |
self._module_name = module_name |
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
# this works for Mujoco.2.1.1 and mujoco_py 2.1 | |
# install mujoco app into Applications | |
# since the newst mujoco_py version does not officially support Mujoco2.1.1, we need some hack to make it work as follows: | |
ln -sf /Applications/MuJoCo.app/Contents/Frameworks/MuJoCo.framework/Versions/Current/Headers/ $HOME/.mujoco/mujoco210/include | |
mkdir -p $HOME/.mujoco/mujoco210/bin | |
ln -sf /Applications/MuJoCo.app/Contents/Frameworks/MuJoCo.framework/Versions/Current/libmujoco.2.1.1.dylib $HOME/.mujoco/mujoco210/bin/libmujoco210.dylib |
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
export PYENV_ROOT="$HOME/.pyenv" | |
export PATH="$PYENV_ROOT/bin:$PATH" | |
if command -v pyenv 1>/dev/null 2>&1; then | |
eval "$(pyenv init -)" | |
fi | |
export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true" | |
export WORKON_HOME=$HOME/Projects/.envs | |
export PROJECT_HOME=$HOME/Projects/ |
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
package edu.stanford.nlp.pipeline; | |
import com.sun.net.httpserver.*; | |
import edu.stanford.nlp.io.IOUtils; | |
import edu.stanford.nlp.io.RuntimeIOException; | |
import edu.stanford.nlp.ling.CoreAnnotations; | |
import edu.stanford.nlp.ling.CoreLabel; | |
import edu.stanford.nlp.ling.IndexedWord; | |
import edu.stanford.nlp.ling.tokensregex.SequenceMatchResult; | |
import edu.stanford.nlp.ling.tokensregex.TokenSequenceMatcher; |
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
{"name":"C.N.1","description":"Things which are equal to the same thing are also equal to one another.","references":[]} | |
{"name":"C.N.2","description":"If equals be added to equals, the wholes are equal.","references":[]} | |
{"name":"C.N.3","description":"If equals be subtracted from equals, the remainders are equal.","references":[]} | |
{"name":"C.N.4","description":"Things which coincide with one another are equal to one another.","references":[]} | |
{"name":"C.N.5","description":"The whole is greater than the part.","references":[]} | |
{"name":"Def.1.1","description":"A point is that which has no part.","references":[]} | |
{"name":"Def.1.10","description":"When a straight line set up on a straight line makes the adjacent angles equal to one another, each of the equal angles is right, and the straight line standing on the other is called a perpendicular to that on which it stands.","references":[]} | |
{"name":"Def.1.11","description":"An obtuse angle is an angle greater than a right angle.","references":[]} | |
{"name":"Def.1.12 |
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
#!/usr/bin/env bash | |
GEMS=$(cat <<EOF | |
childprocess-0.5.8.gem | |
ffi-1.9.10.gem | |
little-plugger-1.1.4.gem | |
micromachine-1.1.0.gem | |
multi_json-1.11.1.gem | |
net-ssh-2.9.2.gem | |
rest-client-1.6.9.gem |
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
export WORKON_HOME=~/Experiemnt/envs | |
export PROJECT_HOME=~/Experiment/projects | |
source /usr/local/bin/virtualenvwrapper.sh |