Skip to content

Instantly share code, notes, and snippets.

@akkijp
akkijp / README.md
Last active May 4, 2016 12:12
NeoBundle installation

Installation

Just run this...

curl https://gist.githubusercontent.com/k4zzk/ddbf5839e3384571b1b9a717f08eaf83/raw/489867fc31a5138328bc5e5801cf945e28982498/install_neobundle.sh | sh && \
vim "+NeoBundleInstall"
@akkijp
akkijp / install-php-7.0.6.sh
Created May 3, 2016 21:53
php7 installation. Dose not work this script!
#!/bin/bash
set -x
set -e
if [ ! -x "`which php`" ]; then
if [ ! -e ./php-7.0.6 ]; then
wget -O "php-7.0.6.tar.gz" http://jp2.php.net/get/php-7.0.6.tar.gz/from/this/mirror && \
tar xfvz ./php-7.0.6.tar.gz
fi
suits = %w| ⚫️ ⚪️ 🔴 🔵|.reverse
suits = %w|♦️ ️♣ ️♥️ ♠️|.reverse
nums = ["A"] + (2..9).to_a + %w|* J Q K|
cards = suits.map {|s| nums.collect {|i| "%s %s " % [i, s]}.reverse}.flatten
# cards = (1..52).map {|i| "%02d " % i}
puts cards.length
puts cards.join("|")

C++11の文法と機能(C++11: Syntax and Feature)

Copyright (C) 2013 江添亮.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU
Free Documentation License".

package main
// from http://www.darul.io/post/2015-07-22_go-lang-simple-reverse-proxy
import (
"net/http"
"net/url"
"net/http/httputil"
"flag"
"fmt"
@akkijp
akkijp / simple_udp_dump.go
Created May 13, 2016 11:51
simple udp dump server
package main
import (
"fmt"
"net"
"os"
)
/* A Simple function to verify error */
func CheckError(err error) {
@akkijp
akkijp / README.md
Last active May 19, 2016 04:15
Installing OpenCV version 2 and 3 to DebianOS

Installing OpenCV version 2 and 3 to DebianOS!!!

Installation

Just run this...

Version 2:

@akkijp
akkijp / README.md
Created May 19, 2016 10:49
raspberrypi インストール手順書

raspberrypi インストール手順書

raspberrypi インストールの手順方法メモ代わり
最終目的は、OpenCVをpythonから扱う事ができるようになるまで

Install

このスクリプトを実行する前に、次のスクリプトを実行します

#!/bin/bash

gid_name=`id | awk '{print $2}' | sed -e 's/gid=[^(]*(*\(.*\))/\1/'`
sudo mkdir /var/run/golang && \