Skip to content

Instantly share code, notes, and snippets.

Avatar

Yuki Ishikawa hoto17296

View GitHub Profile
@hoto17296
hoto17296 / crobat.ipynb
Created Jun 9, 2020
クロバットVの封入枚数の確率分布 https://blog.hotolab.net/entry/crobat
View crobat.ipynb
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 Aug 13, 2018
PySpark Notebook から Treasure Data にクエリを投げる
View td-spark.ipynb
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 Aug 11, 2018
Docker で SSL アクセラレータ
View Dockerfile
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 Jun 3, 2018
2018.06.01 JavaScript Meetup Okinawa #4 @ CODE BASE
View LT.ipynb
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
ちゅら.ai アルゴリズム実装会 #1「決定木」
View decision_tree.ipynb
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 Mar 22, 2018
GPU Practice
View Makefile
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 Mar 22, 2018
Raspberry Pi GPIO Practice
View 0_led.py
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 Nov 4, 2017
ISUCON 7 予選問題 練習環境構築用 Vagrantfile
View 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 Sep 28, 2017
Digdag サーバに登録されている workflow を実行するシェルスクリプト
View run_workflow.sh
#!/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 Sep 6, 2017
Nginx + uWSGI + Flask on Amazon Linux
View app.py
from flask import Flask
application = Flask(__name__)
@application.route("/")
def hello():
return "Hello World!"