Philip Arndt parndt

View projects
1 2
#!/bin/bash
echo "dir1 dir2 dir3 dir4"
View group_job.rb
1 2 3 4 5 6 7 8 9 10
class GroupJob
def initialize(attributes = {})
#do stuff
end
 
def perform
# do stuff
end
 
def success(job)
View active.md

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Sat, 17 Nov 2012 22:21:52 GMT till Sun, 17 Nov 2013 22:21:52 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
  .filter((user) -> user.followers > 200)
View gist:6587838
1 2 3 4 5 6 7 8 9 10
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export TERM=xterm-color
export MANPATH=/usr/local/git/man:$MANPATH
export EDITOR="$HOME/bin/editor.sh"
# Set the base PS1
export PS1="\t: \w$ "
# Rails 2, 3 and 4 console
function rc {
if [ -e "./script/console" ]; then
View gist:6368987
1 2 3 4 5 6 7 8 9 10
gem 'refinerycms', github: 'refinery/refinerycms', branch: 'rails4'
gem 'refinerycms-i18n', github: 'refinery/refinerycms-i18n', branch: 'master'
 
gem 'friendly_id', github: 'norman/friendly_id', branch: 'master'
gem 'friendly_id-globalize', github: 'norman/friendly_id-globalize', branch: 'master'
 
# Add support for refinerycms-acts-as-indexed
gem 'refinerycms-acts-as-indexed', github: 'refinery/refinerycms-acts-as-indexed'
 
gem 'protected_attributes'
View gist:6002993

What’s new, changed and removed in version 2.1.0

This guide will provide a list of bullet points of the stuff that has been added, changed and removed in version 2.1.0.

endprologue.

Changes in behaviour

WARNING. Starting from 2.1.0 we dropped support for Ruby 1.8.x and now Ruby 1.9.3 is the lowest version of
Ruby that is accepted with Ruby 2.0.0 encouraged. We strongly recommend upgrading if you’re still on 1.8.×.

View gist:5998343

Upgrading from version 2.0.10 to version 2.1.x

This guide will guide you through the upgrade process from version 2.0.10 to version 2.1.×.

endprologue.

WARNING. This guide assumes that you will be upgrading from version 2.0.10 of Refinery CMS. If your application is not up-to-date we strongly recommend that you upgrade it to version 2.0.10 before trying to upgrade to version 2.1.0.

WARNING. Before continuing make sure you have a backup copy of your application and database in case something goes wrong.

View gist:5998340

Upgrading from version 2.0.10 to version 2.1.x

This guide will guide you through the upgrade process from version 2.0.10 to version 2.1.×.

endprologue.

WARNING. This guide assumes that you will be upgrading from version 2.0.10 of Refinery CMS. If your application is not up-to-date we strongly recommend for you to upgrade it to version 2.0.10 before trying to upgrade to version 2.1.0.

WARNING. Before continuing make sure you have a backup copy of your application and database in case something goes wrong.

View gist:5997991

Upgrading from version 2.0.10 to version 2.1.x

This guide will guide you through the upgrade process from version 2.0.10 to version 2.1.×.

endprologue.

WARNING. This guide assumes that you will be upgrading from version 2.0.10 of Refinery CMS. If your application is not up-to-date we strongly recommend for you to upgrade it to version 2.0.10 before trying to upgrade to version 2.1.0.

WARNING. Before continuing make sure you have a backup copy of your application and database in case something goes wrong.

View existing.rb
1 2 3 4 5 6 7 8 9 10
def extension_path_for_nested_extension(path, apply_tmp)
if File.exist?(path.gsub(/\.erb$/, ""))
if %r{/(locales/.*\.yml)|((routes|#{gem_name})\.rb\.erb)$} === path
# put new translations into a tmp directory
path = path.split(File::SEPARATOR).insert(-2, "tmp").join(File::SEPARATOR) if apply_tmp
elsif %r{/readme.md$} === path || %r{/#{plural_name}.rb$} === path
path = nil
end
elsif %r{lib\/#{plural_name}.rb$} === path
path = nil
Something went wrong with that request. Please try again.