Skip to content

Instantly share code, notes, and snippets.

## Enter these commands in terminal
# use OSX Accelerate vecLib library
cd /Library/Frameworks/R.framework/Resources/lib
ln -sf /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/Current/libBLAS.dylib libRblas.dylib
# use OpenBlas downloaded with homebrew
cd /Library/Frameworks/R.framework/Resources/lib
ln -sf /usr/local/Cellar/openblas/0.3.1/lib/libopenblas.dylib libRblas.dylib
```
> devtools::install_github("igraph/rigraph")
Downloading GitHub repo igraph/rigraph@master
from URL https://api.github.com/repos/igraph/rigraph/zipball/master
Installing igraph
'/usr/local/Cellar/r/3.5.1/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
'/private/var/folders/9v/251f7k_x6hn8t9wsz8v21rgh0000gn/T/RtmpVdR35c/devtoolsea7d6ffb882d/igraph-rigraph-057cc9d' \
--library='/usr/local/lib/R/3.5/site-library' --install-tests

Sublime Text 3 on OS X Terminal

By creating link

Linking into /usr/bin with sudo:

$ sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/bin/sbl
@smartinsightsfromdata
smartinsightsfromdata / README.md
Created March 16, 2018 18:19 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@smartinsightsfromdata
smartinsightsfromdata / convert.py
Created February 28, 2018 10:38 — forked from nmstoker/convert.py
Convert a Rasa NLU training file from JSON to Markdown format
from rasa_nlu.converters import load_data
# This re-uses the Rasa NLU converters code to turn a JSON Rasa NLU training
# file into MD format and save it
# Assumes you have Rasa NLU installed :-)
# If you want other options, look at the NLU code to work out how to handle them
# USE AT YOUR OWN RISK
@smartinsightsfromdata
smartinsightsfromdata / DepthJS setup
Created February 18, 2018 20:15 — forked from theleoborges/DepthJS setup
xcode jpeg tiff dylib fix
# Install ZeroMQ
sudo brew install zmq
easy_install pyzmq
[0] http://www.zeromq.org/bindings:python
# Install OpenCV
sudo brew install opencv
# Install libusb
@smartinsightsfromdata
smartinsightsfromdata / README.md
Created February 5, 2018 18:15 — forked from DirtyF/README.md
Setup Jekyll on macOS with brew and rbenv

Type this into your Terminal.app:

curl https://gist.githubusercontent.com/DirtyF/5d2bde5c682101b7b5d90708ad333bf3/raw/bbac59647ac66016cf443caf7d48c6ae173ae57f/setup-rbenv.sh | bash
@smartinsightsfromdata
smartinsightsfromdata / jupyter.sh
Created January 2, 2018 11:14 — forked from Colelyman/jupyter.sh
Get Jupyter Notebook Running in SSH Tunnel
user@server$ jupyter notebook --no-browser --port=8889
# run client side
user@client$ ssh -N -f -L localhost:8000:localhost:8889 remote_user@remote_host
firefox http://localhost:8000
# source: https://coderwall.com/p/ohk6cg/remote-access-to-ipython-notebooks-via-ssh
@smartinsightsfromdata
smartinsightsfromdata / numpy_os_x_10_9.sh
Created November 30, 2017 00:06 — forked from goldsmith/numpy_os_x_10_9.sh
How to install Numpy and Scipy on Mac OS X Mavericks (10.9) using Pip.
# set up flags for Numpy C extentions compiling
export CFLAGS="-arch i386 -arch x86_64"
export FFLAGS="-m32 -m64"
export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64"
export CC=gcc-4.2
export CXX="g++ -arch i386 -arch x86_64"
pip install numpy
# success!
@smartinsightsfromdata
smartinsightsfromdata / movieAnalysis.ipynb
Created October 15, 2017 16:05 — forked from sheldonkhall/movieAnalysis.ipynb
Jupyter notebook related to Grakn Pandas Celebrities medium post.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.