Skip to content

Instantly share code, notes, and snippets.

🍣
wish to eat sushi.

Ponto masaponto

🍣
wish to eat sushi.
Block or report user

Report or block masaponto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@masaponto
masaponto / KEYBOARD.CNF
Created Jun 23, 2018
teraterm keybord setting for dvorak
View KEYBOARD.CNF
; Sample of KEYBOARD.CNF for the IBM-PC/AT 101-key keyboard.
; See KEYCODE.TXT for the description of the format.
;
; This file based on IBMKEYB.CNF
; 1. send the symbol of each key top "as-is" at editor keypad.
;
[VT editor keypad]
;Up arrow key
Up=328
;Down arrow key
@masaponto
masaponto / sebastien_cgs_sample.py
Last active Mar 10, 2018
A sample code for docomo sebastien CGS (https://developers.sebastien.ai)
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 \
@masaponto
masaponto / README.md
Last active Nov 8, 2017
某室のシフトをGoogleカレンダーに登録します。
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
@masaponto
masaponto / app.py
Last active Apr 22, 2017
MESHボタン押すとラズパイが天気しゃべるよ (http://masaponto.hatenablog.com/entry/2017/04/21/234752)
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):
You can’t perform that action at this time.