View sebastien_cgs_sample.py
#!/usr/bin/env python
import flask
from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route("/")
def hello():
View dtalk.py
#!/usr/bin/env python
import requests
import ffmpeg
import subprocess
class DTALK:
"""
This scripts depends on 'aplay' command
View 2-42.scm
(define (queens board-size)
(define (queen-cols k)
(if (= k 0)
(list empty-board)
(filter
(lambda (positions) (safe? k positions))
(flatmap
(lambda (rest-of-queens)
(map (lambda (new-row)
(adjoin-position
View Dockerfile
FROM debian:jessie
MAINTAINER masaponto <masaponto@gmail.com>
RUN apt-get update -y && \
apt-get install -y \
texlive \
texlive-fonts-extra \
texlive-bibtex-extra \
texlive-lang-japanese \
View README.md

Setting

$ pip3 install --upgrade google-api-python-client
$ pip3 install --upgrade git+https://github.com/masaponto/ofls-shift
$ echo 'export OFLS_KEY=<your-key-for-spread-sheet-goes-here>' >> ~/.bash_profile
$ echo 'export OFLS_GID=<your-gid-for-spread-sheet-goes-here>' >> ~/.bash_profile
View app.py
from bottledaemon import daemon_run
from bottle import route, run, get
from talk_weather import talk_weather, talk_datetime
@get('/test')
def test():
return 'Hello Raspbery Pi!'
View clustering_based_elm.py
#!/usr/bin/env python
from elm import ELM
from sklearn.cluster import KMeans
import numpy as np
class ClusteringBasedELM(ELM):
"""
This script is clustering based extreme learning machine(CBELM),
View bagging.py
#!/usr/bin/env python
import copy
import numpy as np
from sklearn.base import BaseEstimator, ClassifierMixin
class Bagging(BaseEstimator, ClassifierMixin):
def __init__(self, estimator, n_ensemble, max_samples=1.0):
View CMakeLists.txt
cmake_minimum_required (VERSION 3.7)
project (matrix_calc_ndk)
add_executable(matrix_calc_ndk matrix_calc_ndk.cpp)
View github-pandoc.css
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/