Skip to content

Instantly share code, notes, and snippets.

View ikuwow's full-sized avatar

Ikuo Degawa ikuwow

View GitHub Profile
@ikuwow
ikuwow / Gemfile
Last active August 29, 2015 14:15
Rails+Herokuで5分でWebアプリ作るおっ( ^ω^) ref: http://qiita.com/ikuwow/items/8b8aa9ac8990f98691a9
gem 'rails_12factor', group: :production
@ikuwow
ikuwow / file0.txt
Last active August 29, 2015 14:14
serverspecのpackageリソースはrpmコマンドでテストをする ref: http://qiita.com/ikuwow/items/27b99b6540ee48afa988
$ tree spec/
spec/
├── default
│   └── sample_spec.rb
└── spec_helper.rb
@ikuwow
ikuwow / SampleViewController.swift
Created December 6, 2014 05:14
Swift (iOS)で日本語変数名が便利だなと思った例 ref: http://qiita.com/ikuwow/items/924a039c168655f4fded
var alertController = UIAlertController(title: "あなたはシカオさんではありませんね?", message:"", preferredStyle: UIAlertControllerStyle.Alert)
let はいAlertAction = UIAlertAction(title: "はい", style: UIAlertActionStyle.Default, handler: {...(略)...})
let いいえAlertAction = UIAlertAction(title: "いいえ", style: UIAlertActionStyle.Cancel, handler: nil)
alertController.addAction(はいAlertAction)
alertController.addAction(いいえAlertAction)
self.presentViewController(alertController, animated: true, completion:nil)
@ikuwow
ikuwow / apache_spec.rb
Last active August 29, 2015 14:08
Chef+Kithcen環境でServerspecのテスト実行までの手順 ref: http://qiita.com/ikuwow/items/27397b9675bd50e87b73
require 'serverspec'
describe package('httpd24-httpd') do
it { should be_installed }
end
@ikuwow
ikuwow / file0.txt
Last active February 14, 2018 03:49
XcodeでiOSアプリ開発をする時の.gitignore ref: https://qiita.com/ikuwow/items/4fae81a099bf82f44749
# Xcode (from gitignore.io)
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
@ikuwow
ikuwow / file0.php
Last active September 21, 2015 05:46
HtmlHelper::linkでのURLフラグメント(#書き)の指定の仕方 ref: http://qiita.com/ikuwow/items/b8408e6fb6b96974f507
<?php
echo $this->Html->link(
"ユーザー詳細",
array(
'controller' => 'users',
'action' => 'detail',
8,
'#'=>'top'
)
);
@ikuwow
ikuwow / Singer.m
Created September 22, 2014 10:55
MacのターミナルでObjective-Cをコンパイルする方法 ref: http://qiita.com/ikuwow/items/5470ffea3bf7403fe0a7
#import <Foundation/NSObject.h>
#import <stdio.h>
(略)
var alert = UIAlertView()
alert.title = "title"
alert.message = "message"
alert.addButtonWithTitle("OK")
alert.show()
@ikuwow
ikuwow / test.php
Last active August 29, 2015 14:03
<?php
// 中略
public function display() {
}
public function index() {
}
@ikuwow
ikuwow / .bash_profile
Last active August 29, 2015 14:02
MacでRuby環境を整えてchef、knife-soloを実行可能にするまでの手順 ref: http://qiita.com/ikuwow/items/c604f4bff87275f89543
eval "$(rbenv init -)"