Skip to content

Instantly share code, notes, and snippets.

Avatar

Kosuke Akizuki akkijp

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am rorono on github.
  • I am rorono (https://keybase.io/rorono) on keybase.
  • I have a public key whose fingerprint is 72C6 F320 57D3 164A 0CBB 093A 103F C6B8 890D DCFF

To claim this, I am signing this object:

@akkijp
akkijp / INSTALL
Created Oct 9, 2017 — forked from arya-oss/INSTALL.md
Ubuntu 16.04 Developer Tools installation
View INSTALL
###### development tools
sudo apt-get install build-essential python-dev git nodejs-legacy npm gnome-tweak-tool openjdk-8-jdk
### Python packages
sudo apt-get install python-pip python-virtualenv python-numpy python-matplotlib
### pip packages
pip install django flask django-widget-tweaks django-ckeditor beautifulsoup4 requests classifier SymPy ipython
View capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@akkijp
akkijp / markdown_parser.pegjs
Created Jul 14, 2017
💩 markdownパーサ
View markdown_parser.pegjs
start = doc
doc = block:block + {
return `<body>${block.join("")}</body>`;
}
block = headline
/ paragraph
headline = prefix:("#" / "##" / "###" / "####" / "#####" / "######") textline:TEXT_LINE EOS {
return `<h${prefix.length}>${textline}</h${prefix.length}>`
}
@akkijp
akkijp / README.md
Last active Aug 14, 2016
Ubuntu 16.04 LST Docker Install スクリプト
@akkijp
akkijp / main.cpp
Created Jul 27, 2016
curllib test
View main.cpp
#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 / main.py
Last active Aug 9, 2016
scikit-learn で機械学習を試してみた
View main.py
#! /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()
View README.md
Error: --with-openssl and --with-libressl are both specified and
curl can only use one at a time.

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

@akkijp
akkijp / main.py
Created Jul 14, 2016
ガウシアンフィルタ
View main.py
#! /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):