Skip to content

Instantly share code, notes, and snippets.

@akkijp
akkijp / install.sh
Last active June 2, 2016 14:13
Linux Brew Installation
#!/bin/bash
set -u
set -e
sudo apt-get install -y \
build-essential \
curl \
git \
m4 \
@akkijp
akkijp / README.md
Last active June 10, 2016 09:51
scikit-learnで始める機械学習 チュートリアル テストコード from http://www.slideshare.net/moa108/20130715-lt-scikitlearn

これは、「scikit-learnで始める機械学習 チュートリアル」のテストコードです。

How to use

git clone https://gist.github.com/8bd959a3d71bf6ff6487bc8885f5c9de.git
cd 8bd959a3d71bf6ff6487bc8885f5c9de
@akkijp
akkijp / README.md
Last active June 10, 2016 17:02
python(scikit-learn)で決定木を試したソースコード
@akkijp
akkijp / LICENSE
Last active June 24, 2016 10:18
AWS S3のキャッシュコントロール(cache control)を一括で書き換えるスクリプト - Script be rewritten in bulk cache control of AWS S3
Copyright (c) 2016 Kosuke Akizuki
Released under the MIT license
http://opensource.org/licenses/mit-license.php
@akkijp
akkijp / main.py
Created July 14, 2016 06:38
ガウシアンフィルタ
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
import cv2
import numpy as np
src = cv2.imread("./Lenna.bmp", -1)
dst = np.zeros_like(src)
def pickup_pixel(img, x, y):
Error: --with-openssl and --with-libressl are both specified and
curl can only use one at a time.

というエラーが出た時の対処法

@akkijp
akkijp / main.py
Last active August 9, 2016 07:38
scikit-learn で機械学習を試してみた
#! /usr/bin/env python3
from sklearn import datasets
from sklearn.cross_validation import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import Perceptron
from sklearn.metrics import accuracy_score
import numpy as np
iris = datasets.load_iris()
@akkijp
akkijp / main.cpp
Created July 27, 2016 00:14
curllib test
#include <string>
#include <iostream>
#include <stdio.h>
#include <curl/curl.h>
void check_verification() {
#ifdef SKIP_PEER_VERIFICATION
/*
* If you want to connect to a site who isn't using a certificate that is
* signed by one of the certs in the CA bundle you have, you can skip the
@akkijp
akkijp / README.md
Last active August 14, 2016 13:50
Ubuntu 16.04 LST Docker Install スクリプト