Skip to content

Instantly share code, notes, and snippets.

View hoto17296's full-sized avatar

Yuki Ishikawa hoto17296

View GitHub Profile
@hoto17296
hoto17296 / crobat.ipynb
Created June 9, 2020 14:59
クロバットVの封入枚数の確率分布 https://blog.hotolab.net/entry/crobat
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hoto17296
hoto17296 / td-spark.ipynb
Last active August 13, 2018 10:33
PySpark Notebook から Treasure Data にクエリを投げる
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hoto17296
hoto17296 / Dockerfile
Created August 11, 2018 10:06
Docker で SSL アクセラレータ
FROM python:3-alpine
EXPOSE 80 443
RUN apk add --no-cache --virtual .certbot-deps \
libffi libssl1.0 openssl ca-certificates binutils
RUN apk add --no-cache --virtual .build-deps \
gcc linux-headers openssl-dev musl-dev libffi-dev \
&& pip install --no-cache-dir certbot \
@hoto17296
hoto17296 / LT.ipynb
Created June 3, 2018 03:00
2018.06.01 JavaScript Meetup Okinawa #4 @ CODE BASE
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hoto17296
hoto17296 / decision_tree.ipynb
Last active May 13, 2018 05:17
ちゅら.ai アルゴリズム実装会 #1「決定木」
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hoto17296
hoto17296 / Makefile
Last active March 22, 2018 08:04
GPU Practice
run_jupyter:
docker run --runtime=nvidia --rm -d -p 80:8888 -v /notebooks:/notebooks \
tensorflow/tensorflow:latest-gpu-py3 jupyter notebook \
--notebook-dir=/notebooks --allow-root --NotebookApp.token=''
@hoto17296
hoto17296 / 0_led.py
Last active March 22, 2018 07:54
Raspberry Pi GPIO Practice
import RPi.GPIO as GPIO
import time
INTERVAL = 0.5
GPIO.setmode(GPIO.BCM)
PIN = 3
GPIO.setup(PIN, GPIO.OUT)
@hoto17296
hoto17296 / Vagrantfile
Last active November 4, 2017 06:29
ISUCON 7 予選問題 練習環境構築用 Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider "virtualbox" do |vb|
vb.cpus = 1
vb.memory = 1024
# https://github.com/joelhandwell/ubuntu_vagrant_boxes/issues/1
vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"]
@hoto17296
hoto17296 / run_workflow.sh
Last active September 28, 2017 06:34
Digdag サーバに登録されている workflow を実行するシェルスクリプト
#!/bin/bash -eu
if [ $# -ne 1 ]; then
echo -e "Usage:\n run_workflow.sh <workflowId>" 1>&2
exit 1
fi
API_BASE='http://127.0.0.1:65432'
WORKFLOW_ID=$1
SESSION_TIME=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
@hoto17296
hoto17296 / app.py
Created September 6, 2017 10:53
Nginx + uWSGI + Flask on Amazon Linux
from flask import Flask
application = Flask(__name__)
@application.route("/")
def hello():
return "Hello World!"