Skip to content

Instantly share code, notes, and snippets.

View lazykyama's full-sized avatar

Kazuhiro Yamasaki lazykyama

View GitHub Profile
@lazykyama
lazykyama / util.js
Last active December 16, 2015 11:49
色相が均等な間隔になるよう、色を割り当てる。Picks a color on hue circle with a constant interval.
/**
* util.js
* @auther kyama http://sukimaprogrammer.blogspot.jp/
* @since 0.0.1
* @version 0.0.3
*
* This source is distributed under the MIT License.
*
* Copyright (c) 2013 lazykyama http://sukimaprogrammer.blogspot.jp/
*
@lazykyama
lazykyama / ConfTimeKeeper.html
Last active December 16, 2015 18:29
発表やプレゼンのタイムキープ用ツール。「start/stop」ボタンを押すとタイムキープを開始。Google Chrome, Safari(ともにMac OSX 10.7.5)でのみ動作確認。jQueryを利用しているため、ネットワークとの接続が必要。
<!--
* @auther kyama http://sukimaprogrammer.blogspot.jp/
* @since 0.0.1
* @version 0.0.3
*
* This source is distributed under the MIT License.
*
* Copyright (c) 2013 lazykyama http://sukimaprogrammer.blogspot.jp/
*
* 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:
@lazykyama
lazykyama / syncbuild_remote_jenkins.py
Last active August 29, 2015 14:17
リモートサーバのJenkinsジョブと連携するためのスクリプト。RemoteTriggerPluginで対応できないケース用。ビルド完了を待機し、ビルド結果のURLと成否を出力します。Synchronized build script for remote jenkins job.
#!/usr/bin/env python
# -*- coding: utf-8-unix -*-
"""build remote jenkins job and wait it until finish to build.
Usage:
syncbuild_remote_jenkins.py --job JOB [--host HOST] [--port PORT] [--base-path PATH]
[--params PARAMS] [--interval INTERVAL]
syncbuild_remote_jenkins.py -h|--help
@lazykyama
lazykyama / Dockerfile
Last active August 29, 2015 14:18
Vagrantfile and Dockerfile for Sirius, open-source end-to-end standalone intelligent personal assistant (IPA) service. Dockerfile and start-qa-server.patch MUST be moved ./docker directory.
FROM ubuntu:trusty
# forked from https://github.com/jhauswald/sirius/pull/55
MAINTAINER kyama <yamasaki.k.1101@gmail.com>
# for Ubuntu 14.04
RUN apt-get update && apt-get install -y \
software-properties-common
RUN apt-get update && apt-get install -y \
@lazykyama
lazykyama / _readme.md
Last active August 29, 2015 14:22
「ソフトウェアエンジニアならば1時間以内に解けなければいけない5つの問題」の解答。The answer of "Five programming problems every Software Engineer should be able to solve in less than 1 hour".
@lazykyama
lazykyama / Vagrantfile
Last active August 29, 2015 14:27
Vagrantfiles for NLP env. 予告なく削除することがあるので注意。
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@lazykyama
lazykyama / char_imggen.py
Last active October 18, 2015 14:46
generate single character image following the given json file.
#!/usr/bin/env python
# -*- coding: utf-8-unix -*-
"""generate single character image.
Usage:
char_imggen.py [-i INPUT] [-o OUTDIR] [-v]
char_imggen.py -h|--help
char_imggen.py --version
#!/usr/bin/env python
# -*- coding: utf-8-unix -*-
import os
import logging
import re
from PIL import Image
INFILENAME_PATTERN=re.compile(r'([^_]+)_img.png')
@lazykyama
lazykyama / Dockerfile
Last active September 15, 2019 08:14
Dockerfile to build a Chainer container with OpenMPI and NVIDIA DALI.
# To make a container including chainer, OpenMPI and DALI.
FROM nvcr.io/nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04
# Install global dependencies.
RUN apt-get update && apt-get install -y vim git wget python3-pip
# Install OpenMPI, mpi4py and DALI.
WORKDIR /opt
RUN wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.4.tar.gz \
&& tar xf openmpi-3.1.4.tar.gz
@lazykyama
lazykyama / Dockerfile
Last active April 10, 2020 14:05
Dockerfile for NEUTRINO on GPU
# Dockerfile for NEUTRINO.
FROM nvcr.io/nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04
LABEL maintainer="lazykyama"
# Install dependencies.
RUN apt update && \
apt install -y python3 python3-pip curl unzip && \
apt clean && \
rm -rf /var/lib/apt/lists/*
# Not good from here...