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
# Initial Checkout/Clone | |
git svn clone https://svn.yourdomain.com --stdlayout destination_folder_name | |
# stdlayout is used if your SVN follows the standard | |
# layout /trunk /branches /tags and will add the branches and tags as git branches. | |
# Do some dev work | |
git add . | |
git commit -m "commit message" | |
git stash # Stash uncommitted files | |
git svn fetch # Get new SVN changes |
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
# Ability Class | |
class AdminAbility | |
include CanCan::Ability | |
def initialize(user) | |
if user && user.admin? | |
can :access, :rails_admin | |
can :manage, :all | |
end |
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 PerformanceWorker | |
include Wisper | |
def perform | |
publish(:start_download, self) | |
PerformanceDownloader.new(url, attributes) | |
publish(:finish_download, self) | |
Transaction.start | |
publish(:import_start, self) | |
PerformancePurger.new(dbtable) |
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
<?php | |
/* | |
* e24PaymentPipe | |
* | |
* | |
* e24payment-php is an implementation in PHP of E24PaymentPipe | |
* java classes. It allows to connect to online credit card payment | |
* from http://www.aciworldwide.com/. | |
* |
NewerOlder