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
# force_require.rb | |
# | |
# == Usage | |
# | |
# require 'bundler/setup' | |
# require './force_require' | |
# | |
# force_require 'g' | |
# g 'foo' | |
# |
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
notifications: | |
webhooks: http://example.com/travisci-hipchat-webhook.php |
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
language: ruby | |
rvm: | |
- 1.9.3 | |
env: | |
- DB=sqlite | |
- DB=mysql | |
- DB=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
#!/var/lib/jenkins/.rvm/bin/rvm-shell ruby-1.9.3-p194@sqale | |
export RAILS_ENV=test | |
bundle install --without production | |
git checkout -b feature/bundle-update-`date +%Y%m%d` | |
bundle update | |
git add Gemfile Gemfile.lock | |
git commit -m 'bundle update' | |
git push origin feature/bundle-update-`date +%Y%m%d` |
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 ActiveRecord::Base | |
# Usage: | |
# | |
# > puts User.first.to_factory_girl | |
# FactoryGirl.define do | |
# factory :user do | |
# ... | |
# end | |
# end | |
# # Usage: FactoryGirl.create(:user, ...) |
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/bash | |
# | |
# login in the jenkins server with: | |
# | |
# heroku login | |
# heroku keys:add | |
# | |
# Doing so, jenkins will have permission to deploy to | |
# the heroku remote. | |
# |
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
source "https://rubygems.org" | |
gem "jruby-poi", github: "kameeoze/jruby-poi", require: "poi" | |
gem "spoon_daemon" | |
gem "pry" | |
gem "bundler", require: ['drb/drb', 'stringio'] |
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
package sample.poi; | |
import java.io.FileOutputStream; | |
import java.io.OutputStream; | |
import org.apache.poi.openxml4j.opc.OPCPackage; | |
import org.apache.poi.poifs.crypt.EncryptionInfo; | |
import org.apache.poi.poifs.crypt.EncryptionMode; | |
import org.apache.poi.poifs.crypt.Encryptor; | |
import org.apache.poi.poifs.filesystem.POIFSFileSystem; |
OlderNewer