Skip to content

Instantly share code, notes, and snippets.

View Glavin001's full-sized avatar
💻
Working - I may be slow to respond.

Glavin Wiechert Glavin001

💻
Working - I may be slow to respond.
View GitHub Profile
@Glavin001
Glavin001 / README.md
Last active June 12, 2017 23:12
Lixar theme for Unanet

Github Events Analysis with Neo4j

Imgur

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.

@Glavin001
Glavin001 / main.py
Created January 15, 2018 22:26 — forked from zackster/main.py
Serverless fasttext implementation. I have a blog post on the Code For Cash blog (blog.codefor.cash) that discusses what else is needed to run fasttext in a serverless AWS lambda environment: compiling fasttext on ec2 for linux, including nltk in the root directory of the zip, etc.
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
@Glavin001
Glavin001 / main.py
Created January 15, 2018 22:26 — forked from zackster/main.py
Serverless fasttext implementation. I have a blog post on the Code For Cash blog (blog.codefor.cash) that discusses what else is needed to run fasttext in a serverless AWS lambda environment: compiling fasttext on ec2 for linux, including nltk in the root directory of the zip, etc.
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
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)
@Glavin001
Glavin001 / README.md
Created May 9, 2018 20:04
Backup Slack Emojis
  1. Run the RunInBrowser.js script by copying and pasting into the Developer Tools' Console.
@Glavin001
Glavin001 / list-routes.php
Created July 3, 2018 15:26 — forked from alcalyn/list-routes.php
Dump all Silex routes
<?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;
/**
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
@Glavin001
Glavin001 / output.txt
Last active October 20, 2018 16:35
Trying out https://github.com/PJunhyuk/exercise-pose-analyzer . Ran `python video_pose.py -f /app/testset/shoulder_press_1.mp4 -o mp4`
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
@Glavin001
Glavin001 / demo.txt
Created March 4, 2019 23:42
Code Tabs do not allow HMTL comments within code blocks
<!--DOCUSAURUS_CODE_TABS-->
<!--JavaScript-->
```js
console.log('Hello, world!');
```
<!--Python-->
```py
print('Hello, world!')
```