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
[general] | |
cfg_schema = 1 | |
ColumnCount = 3 | |
UseWorkarea = True | |
ModMask = <Ctrl><Alt> | |
MovementsWrap = True | |
[keys] | |
C = move-to-center | |
H = horizontal-maximize |
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
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get install vim git tree htop firefox cmake tmux `# general stuff` \ | |
nodejs yarn `# general stuff` \ | |
python-software-properties software-properties-common `#to use add-apt-repository` \ |
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
= Fitness and Nutrition Recommendations | |
:neo4j-version: 2.3.2 | |
:author: Benjamin Nussbaum | |
:twitter: @bennussbaum | |
== Introduction | |
I was recently motivated to re-imagine the BeachBody fitness programs and nutritional supplements as a graph with the goal being to recommend fitness programs, nutritional supplements and other users that would be personalized to my user persona. | |
For those that don’t know, BeachBody is responsible for P90X, INSANITY, T25 and a plethora of others that they’ve been distributing via DVD for years. | |
== The Project |
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
Here Is my solution | |
In the shell | |
``` | |
# create perms | |
from django.contrib.auth.models import User,Permission | |
from account.models import Article | |
from django.contrib.contenttypes.models import ContentType | |
content_type = ContentType.objects.get_for_model(Article) | |
Permission.objects.create(codename='can_view_odd_ids', name= 'can_view_odd_ids', content_type=content_type) | |
Permission.objects.create(codename='can_view_even_ids', name= 'can_view_even_ids', content_type=content_type) |
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
<C>\<T>\<D> _ <R> |
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
# notes | |
# gopro memory: exfat-utils | |
# mp3,rip pacpl | |
#node gcc g++ clang make | |
sudo apt-get install -y gcc g++ clang make zsh apt-transport-https pacpl sudo vim git gitk vlc gimp tree htop tmux curl network-manager-openvpn network-manager-openvpn-gnome exfat-utils jq gvfs-backends gvfs-bin audacity parallel silversearcher-ag | |
#ubuntu16-04, redshift-gtk regle automatiquement lumunosité | |
sudo apt-get install -y git gitk redshift-gtk terminator | |
- keep | |
- ohmyzsh |