READ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
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".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("|") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias pip-upgrade-all="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U" | |
alias pip3-upgrade-all"pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip3 install -U" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actionmailer (4.2.4, 4.2.2) | |
actionpack (4.2.4, 4.2.2, 4.2.1) | |
actionview (4.2.4, 4.2.2, 4.2.1) | |
activejob (4.2.4, 4.2.2) | |
activemodel (4.2.4, 4.2.2, 4.2.1) | |
activerecord (4.2.4, 4.2.2) | |
activesupport (4.2.4, 4.2.2, 4.2.1) | |
addressable (2.3.8) | |
arel (6.0.3) | |
ast (2.2.0, 2.1.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
g++ `pkg-config --cflags opencv` -lopencv_core -lopencv_highgui -lopencv_imgproc version_cv.cpp `pkg-config --libs opencv` |