Skip to content

Instantly share code, notes, and snippets.


Ponto masaponto

View GitHub Profile
View 2-42.scm
(define (queens board-size)
(define (queen-cols k)
(if (= k 0)
(list empty-board)
(lambda (positions) (safe? k positions))
(lambda (rest-of-queens)
(map (lambda (new-row)
View Dockerfile
FROM debian:jessie
MAINTAINER masaponto <>
RUN apt-get update -y && \
apt-get install -y \
texlive \
texlive-fonts-extra \
texlive-bibtex-extra \
texlive-lang-japanese \
masaponto /
Last active Nov 8, 2017


$ pip3 install --upgrade google-api-python-client
$ pip3 install --upgrade git+
$ 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
masaponto /
Last active Apr 22, 2017
MESHボタン押すとラズパイが天気しゃべるよ (
from bottledaemon import daemon_run
from bottle import route, run, get
from talk_weather import talk_weather, talk_datetime
def test():
return 'Hello Raspbery Pi!'
#!/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),
#!/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)
masaponto / github-pandoc.css
Created Feb 4, 2017 — forked from dashed/github-pandoc.css
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
View github-pandoc.css
/*! normalize.css v2.1.3 | MIT License | */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
* Correct `block` display not defined in IE 8/9.
masaponto / numpy.hpp
Created Feb 1, 2017 — forked from rezoo/numpy.hpp
Reimplementation of libnpy. This library is header-only and compatible with any environment including MSVC.
View numpy.hpp
* Copyright (c) 2012 Masaki Saito
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
View input_array.cpp
#include <iostream>
#include "numpy.hpp"
int main(void) {
std::vector<int> s; // Vetor for matrix size
std::vector<int> int_data; // Vector for matrix element
aoba::LoadArrayFromNumpy("int_array.npy", s, int_data);
You can’t perform that action at this time.