Using Styler Chrome extension.
On July 22, Github announced the 3rd Annual Github Data Challenge presenting multiple sources of data available.
This sounded to me a good opportunity to use their available data and import it in Neo4j in order to have a lot of fun at analyzing the data that fits naturally in a graph.
As I work mainly offline or behind military proxies that do not permit me to use the ReST API, I decided to go for the Github Archive available here, you can then download json files representing Github Events on a daily/hour basis.
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 string | |
import re | |
import nltk | |
def normalize(text): | |
# remove punctuation | |
text = re.sub('[%s]' % re.escape(string.punctuation), '', text) | |
# split into words | |
# nltk.data.path.append("/nltk_data") | |
from nltk.tokenize import word_tokenize |
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 string | |
import re | |
import nltk | |
def normalize(text): | |
# remove punctuation | |
text = re.sub('[%s]' % re.escape(string.punctuation), '', text) | |
# split into words | |
# nltk.data.path.append("/nltk_data") | |
from nltk.tokenize import word_tokenize |
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
function install_faiss() { | |
pyenv shell rise | |
pip install numpy | |
sudo apt-get install -y \ | |
build-essential \ | |
libopenblas-dev \ | |
gfortran \ | |
swig | |
PREFIX_MAIN=$(pyenv virtualenv-prefix) |
- Run the
RunInBrowser.js
script by copying and pasting into the Developer Tools' Console.
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
<?php | |
require_once __DIR__.'/../vendor/autoload.php'; | |
use Symfony\Component\Console\Helper\Table; | |
use Symfony\Component\Console\Output\ConsoleOutput; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Silex\Application; | |
/** |
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
exercise-pose-analyzer | WARNING:tensorflow:From /app/nnet/pose_net.py:54: calling resnet_arg_scope (from tensorflow.contrib.slim.python.slim.nets.resnet_utils) with is_training is deprecated and will be removed after 2017-08-01. | |
exercise-pose-analyzer | Instructions for updating: | |
exercise-pose-analyzer | Pass is_training directly to the network instead of the arg_scope. | |
exercise-pose-analyzer | WARNING:tensorflow:From /app/nnet/pose_net.py:54: calling resnet_arg_scope (from tensorflow.contrib.slim.python.slim.nets.resnet_utils) with is_training is deprecated and will be removed after 2017-08-01. | |
exercise-pose-analyzer | Instructions for updating: | |
exercise-pose-analyzer | Pass is_training directly to the network instead of the arg_scope. | |
exercise-pose-analyzer | 2018-10-20 14:44:19.454505: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. | |
exerc |
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
exercise-pose-analyzer | WARNING:tensorflow:From /app/nnet/pose_net.py:54: calling resnet_arg_scope (from tensorflow.contrib.slim.python.slim.nets.resnet_utils) with is_training is deprecated and will be removed after 2017-08-01. | |
exercise-pose-analyzer | Instructions for updating: | |
exercise-pose-analyzer | Pass is_training directly to the network instead of the arg_scope. | |
exercise-pose-analyzer | WARNING:tensorflow:From /app/nnet/pose_net.py:54: calling resnet_arg_scope (from tensorflow.contrib.slim.python.slim.nets.resnet_utils) with is_training is deprecated and will be removed after 2017-08-01. | |
exercise-pose-analyzer | Instructions for updating: | |
exercise-pose-analyzer | Pass is_training directly to the network instead of the arg_scope. | |
exercise-pose-analyzer | 2018-10-20 14:44:19.454505: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. | |
exerc |
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
<!--DOCUSAURUS_CODE_TABS--> | |
<!--JavaScript--> | |
```js | |
console.log('Hello, world!'); | |
``` | |
<!--Python--> | |
```py | |
print('Hello, world!') | |
``` |