This file contains 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 | |
# put this postgresql at /etc/init.d/postgresql | |
# chkconfig: 2345 98 02 | |
# description: PostgreSQL RDBMS | |
# This is an example of a start/stop script for SysV-style init, such | |
# as is used on Linux systems. You should edit some of the variables | |
# and maybe the 'echo' commands. | |
# | |
# Place this file at /etc/init.d/postgresql (or |
This file contains 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
$ gem install rails -v 5.0.0.rc1 | |
$ rails new yourProject -d postgresql |
This file contains 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
class SmallTool | |
def initialize | |
@result_array = [] | |
end | |
def array_flatten(target_array) | |
target_array.each do |item| | |
if item.is_a?(Array) | |
array_flatten(item) | |
else |