Updated for Rails 4.0.0+
-
Set up the
bower
gem. -
Follow the Bower instructions and list your dependencies in your
bower.json
, e.g.// bower.json
{
class SourceAnnotationExtractor | |
def find_with_custom_directories | |
find_without_custom_directories(%w(app config lib script test spec)) | |
end | |
alias_method_chain(:find, :custom_directories) | |
end |
Updated for Rails 4.0.0+
Set up the bower
gem.
Follow the Bower instructions and list your dependencies in your bower.json
, e.g.
// bower.json
{
box: wercker/ubuntu12.04-ruby2.0.0 | |
services: | |
- wercker/postgresql | |
build: | |
steps: | |
- bundle-install | |
- rails-database-yml: | |
service: postgresql |
@interface NSString(NSStringAddition) | |
- (NSString *)convertToZenkakukana; | |
@end | |
@implementation NSString(NSStringAddition) | |
- (NSString *)convertToZenkakukana | |
{ | |
NSMutableString *target =self.mutableCopy; |
# http://stackoverflow.com/questions/14972253/simpleform-default-input-class | |
# https://github.com/plataformatec/simple_form/issues/316 | |
inputs = %w[ | |
CollectionSelectInput | |
DateTimeInput | |
FileInput | |
GroupedCollectionSelectInput | |
NumericInput | |
PasswordInput |
スライドにてくるURL | |
machida | |
https://twitter.com/machida | |
合同会社フィヨルド | |
http://fjord.jp/ | |
怖話 | |
http://kowabana.jp |
Why Should I Care (For Developers)
"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."
curl --header 'Authorization: token INSERTACCESSTOKENHERE' \ | |
--header 'Accept: application/vnd.github.v3.raw' \ | |
--remote-name \ | |
--location https://api.github.com/repos/owner/repo/contents/path | |
# Example... | |
TOKEN="INSERTACCESSTOKENHERE" | |
OWNER="BBC-News" | |
REPO="responsive-news" |
FROM ubuntu:14.04 | |
MAINTAINER Akira Yoshiyama <[email protected]> | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN mkdir -p /etc/apt /var/run | |
ADD sources.list /etc/apt/sources.list | |
RUN rm /etc/apt/sources.list.d/* | |
RUN apt-get update | |
RUN apt-get install --reinstall -y openssh-server python-apt upstart sysvinit-utils | |
RUN mv /sbin/initctl.distrib /sbin/initctl |
require 'faraday' | |
require 'json' | |
require 'yaml' | |
require 'pry' | |
require 'pp' | |
Setting = YAML.load_file './main.yml' | |
Setting['ChatWork']['OrderTemplate'] = Setting['ChatWork']['OrderTemplate'] + Setting['ChatWork']['PairOrderTemplate'].combination(2).collect {|arr| arr.join(",") } |