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
public class DateUtils { | |
public static void main(String[] args) { | |
DateUtils dateUtils = new DateUtils(); | |
// テストコード | |
int[] year_month_null = dateUtils.parseYearMonth(null); | |
if(year_month_null == null) |
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
lsof -nP -iTCP -sTCP:LISTEN |
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
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<script type="text/javascript" src="http://fgnass.github.io/spin.js/spin.min.js"></script> | |
<script type="text/javascript" src="http://fgnass.github.io/spin.js/jquery.spin.js"></script> | |
<script type="text/javascript"> | |
/* 共通処理 START*/ | |
$(document).on('click', '.submit', function(evnet){ | |
var opts = { |
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
import UIKit | |
import WebKit | |
class ViewController: UIViewController{ | |
var webview : WKWebView? | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// デバイスのCGRectを取得 | |
var deviceBound : CGRect = UIScreen.mainScreen().bounds |
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
echo foo.txt > .gitignore | |
git rm --cached foo.txt | |
git commit -m "foo.txtを除外" | |
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
git reset HEAD foo.txt |
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
heroku config:add PASSWORD="hero+haiku" |
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
#heroku workerディレクトリ配下をデプロイする。 | |
git subtree push --prefix worker/ heroku master | |
※masterブランチ以外のブランチでもこのコマンドでいけた。 | |
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
#ProcfileをRoot直下に作成 | |
worker: bundle exec ruby lib/eventmachine/twitter_stream.rb | |
#Herokuへデプロイ | |
heroku create test-app | |
git add -A | |
git commit -m "first commit." | |
git push heroku master | |
#workerプロセス起動 |
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
render :nothing => true |