Skip to content

Instantly share code, notes, and snippets.

View kozo2's full-sized avatar

Kozo Nishida kozo2

View GitHub Profile
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: echo hello from Linux
- bash: |
git submodule init && git submodule update
sudo apt-get update && sudo apt-get install -y wget bzip2 python3-pip libgsl-dev libboost-dev cmake
sudo python3 -m pip install -U pip setuptools
FROM ubuntu
USER root
RUN apt-get update && apt-get install -y git python3 python3-pip cmake libboost-dev libgsl-dev curl && \
curl -LO https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.5/src/hdf5-1.10.5.tar.bz2 && \
tar xf hdf5-1.10.5.tar.bz2 && \
cd ./hdf5-1.10.5 && ./configure --enable-cxx --prefix=/opt/hdf5 && make && make install && \
export PATH=/opt/hdf5/bin:${PATH} && \
export LD_LIBRARY_PATH=/opt/hdf5/lib:${LD_LIBRARY_PATH} && \
export INCLUDE_PATH=/opt/hdf5/include:${INCLUDE_PATH} && \
cd && git clone git://github.com/ecell/ecell4-base && cd ecell4-base && git checkout -t origin/v2.0 && \
# azure_batch.py
# Copyright (c) 2017 Kazunari Kaizu
# Released under the GNU General Public License
# python_tutorial_client.py
# Copyright (c) 2017 Microsoft Corporation
# Released under the MIT license
from __future__ import print_function
import datetime
require "numo/narray"
require "rumale"
samples = Numo::DFloat[[1, 2], [1, 4], [1, 0],[10, 2], [10, 4], [10, 0]]
analyzer = Rumale::Clustering::KMeans.new(n_clusters: 2, max_iter: 50)
cluster_labels = analyzer.fit_predict(samples)

FILL MY TITLE

requirements

gem install daru-apiclient
gem install daru-view
require 'daru/apiclient'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kozo2
kozo2 / hoge.md
Last active February 13, 2019 11:35
# azure_batch.py
# Copyright (c) 2017 Kazunari Kaizu
# Released under the GNU General Public License
# python_tutorial_client.py
# Copyright (c) 2017 Microsoft Corporation
# Released under the MIT license
from __future__ import print_function
import datetime
# azure_batch.py
# Copyright (c) 2017 Kazunari Kaizu
# Released under the GNU General Public License
# python_tutorial_client.py
# Copyright (c) 2017 Microsoft Corporation
# Released under the MIT license
from __future__ import print_function
import datetime