How to use Pelican on GitHub Pages ![Gittip](https://camo.githubusercontent.com/41a54e41e95fa22290d0d187814d701f6a938105a3578f940d3d4d047145fe6a/68747470733a2f2f7261772e6769746875622e636f6d2f6769747469702f7777772e6769747469702e636f6d2f6d61737465722f696d672d7372632f6769747469702d6c6f676f2d33322e706e67)
Author: Josef Jezek
sudo apt-get install python-setuptools
#Author: Krishnamurthy Koduvayur Viswanathan | |
from __future__ import division | |
import collections | |
import math | |
class Model: | |
def __init__(self, arffFile): | |
self.trainingFile = arffFile | |
self.features = {} #all feature names and their possible values (including the class label) |
# Editor backup files | |
*.bak | |
*~ |
all: cpp-version c-version alioth | |
CPPFLAGS+=-g -O3 | |
CPPFLAGS+=-march=native | |
# LDFLAGS+=-ltcmalloc | |
CXXFLAGS+=$(CPPFLAGS) -std=c++0x | |
LDFLAGS+=-lpthread | |
# CXX=clang++ |
Author: Josef Jezek
sudo apt-get install python-setuptools
Run with Python:
pip-2.7 install cffi PYTHON=python2.7 sh go.sh
Run with PyPy:
pip-pypy install cffi PYTHON=pypy sh go.sh
import sqlite3 | |
import multiprocessing | |
''' | |
This program starts a daemon process that listens on a queue. | |
It then starts 10 processes that place integers in the queue. | |
The listening daemon pulls the integers out of the queue and | |
stores them in the database. | |
''' | |
DB_FILENAME = 'db.sqlite' |