Skip to content

Instantly share code, notes, and snippets.

View 0bserver07's full-sized avatar
🦋
Doing Research Reproducibility & Program Synthesis

Yad Konrad 0bserver07

🦋
Doing Research Reproducibility & Program Synthesis
View GitHub Profile
  • To include python3 kernel in ipython:

    python3 -m pip install ipykernel
    python3 -m ipykernel install --user
    
alabaster==0.7.9
appnope==0.1.0
Babel==2.3.4
decorator==4.0.10
docutils==0.12
entrypoints==0.2.2
h5py==2.6.0
imagesize==0.7.1
ipykernel==4.3.1
ipyparallel==5.1.1

Keybase proof

I hereby claim:

  • I am 0bserver07 on github.
  • I am yad (https://keybase.io/yad) on keybase.
  • I have a public key whose fingerprint is F27D D925 D6EE A08D D0F7 BDE2 38FB 10E4 6CCF 0A27

To claim this, I am signing this object:

@0bserver07
0bserver07 / README.md
Created June 29, 2016 20:26 — forked from rduplain/README.md
Connect to MSSQL using FreeTDS / ODBC in Python.

Goal: Connect to MSSQL using FreeTDS / ODBC in Python.

Host: Ubuntu 11.10 x86_64

Install:

sudo apt-get install freetds-dev freetds-bin unixodbc-dev tdsodbc
pip install pyodbc sqlalchemy

In /etc/odbcinst.ini:

@0bserver07
0bserver07 / gist:e2ac101aef7edd63fd15fcc6c760b9fd
Created May 26, 2016 17:00 — forked from entaroadun/gist:1653794
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation:

Products

index of products 25 first

curl -i -H "X-Spree-Token: YOUR_TOKEN_ID" http://0.0.0.0:3000/api/products.json

Show a product

curl -i -H "X-Spree-Token: YOUR_TOKEN_ID" http://0.0.0.0:3000/api/products/706676762.json

Modify a product

curl -i -X PUT -H "X-Spree-Token: YOUR_TOKEN_ID" -d "product[name]=Headphones" http://0.0.0.0:3000/api/products/706676762.json

@0bserver07
0bserver07 / .gitignore
Last active September 25, 2015 21:31
Please use this git ignore document to avoid some files to be in the main project, that are not necessary.
# bundler state
/.bundle
/vendor/bundle/
/vendor/ruby/
# minimal Rails specific artifacts
db/*.sqlite3
/db/*.sqlite3-journal
/log/*
/tmp/*
# We'll render HTML templates and access data sent by POST
# using the request object from flask
from flask import Flask, render_template, request
import json
# Initialize the Flask application
app = Flask(__name__)
# This route will show a form to submit some JSON data
1- remove the Composer git, replace it by our git version.
2- bundle install and make sure the Rails App runs.
3- Push Github repo.
4- Add Payola gem
5- Payola model installation
5- Payloa + Stripe key
...