Just run this...
curl https://gist.githubusercontent.com/k4zzk/ddbf5839e3384571b1b9a717f08eaf83/raw/489867fc31a5138328bc5e5801cf945e28982498/install_neobundle.sh | sh && \
vim "+NeoBundleInstall"
#!/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("|") |
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" |
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
) | |
/* A Simple function to verify error */ | |
func CheckError(err error) { |