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
# | |
# 固定の文字をtwitterに、つぶやいてみるサンプルコード | |
# | |
require 'rubygems' | |
require 'twitter' | |
require 'pp' | |
Twitter.configure do |config| | |
config.consumer_key = 'Consumer Key' | |
config.consumer_secret = 'Consumer secret' |
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
# | |
# 自分のタイムラインの内容をとってきて表示させてみるサンプルコード | |
# | |
require 'rubygems' | |
require 'twitter' | |
require 'pp' | |
Twitter.configure do |config| | |
config.consumer_key = 'Consumer Key' | |
config.consumer_secret = 'Consumer secret' |
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
# | |
# 任意の文字列を受け付けて、内容をTwitterに投稿する。 | |
# 任意の文字列はコンソールから入力。 | |
# | |
require 'rubygems' | |
require 'twitter' | |
require 'pp' | |
Twitter.configure do |config| | |
config.consumer_key = 'Consumer Key' |
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
set nocompatible | |
set number | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
syntax on | |
filetype on | |
filetype indent on |
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
# コンテンツ更新設定を読み込みオブジェクトとして提供するクラス。 | |
# 更新運用は、下記ルールに従って所定の位置にファイルをセットするだけで、ソースコードの追記やクラスファイルの追記は必要はありません。 | |
# | |
# <読み込みコンテンツ設定ルール> | |
# resources/operationに、クラス名に使える名前のcsvファイルを置く。 | |
# ○) Art.csv Pickup.csv WhatsNew.csv | |
# ×) art.cav pickup.csv whats_new.csv _hoge.cvs 123.csv | |
# ファイルの拡張子は必ず、.csvです。それ以外は読み込まれません。 | |
# | |
# <csvファイルの中身のルール> |
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
NeoBundle 'Shougo/neobundle.vim' | |
".vim/bundle/neocomplcache/doc/neocomplcache.txt | |
"から、必須設定と書かれている部分をコピペ | |
" Disable AutoComplPop. | |
let g:acp_enableAtStartup = 0 | |
" Use neocomplcache. | |
let g:neocomplcache_enable_at_startup = 1 | |
" Use smartcase. | |
let g:neocomplcache_enable_smart_case = 1 |
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
$ uname -a | |
Linux xxx.compute.internal 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux |
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
# yum install mariadb mariadb-server |
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
# vi /etc/php-fpm.d/www.conf |
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
# yum install nginx | |
# nginx -v | |
nginx version: nginx/1.10.2 |
OlderNewer