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
# Ruby 2.7.0 | |
ar = [1,2,3,4] | |
ar.first | |
ar.last | |
ar[1] | |
ar << 5 | |
ar.push(6) | |
ar.map(&:to_s) | |
ar.delete(3) |
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
# Updating master | |
git checkout master | |
git pull --rebase | |
# updating branches (PRs active) | |
git checkout BRANCH_NAME | |
git rebase origin/master | |
git push origin BRANCH_NAME --force |
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 | |
$this->testClass = new core_kernel_classes_Class(TAO_TEST_CLASS); | |
$this->testClass->getInstances(); // returns an array collection |
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
git checkout --orphan develop | |
git push -f develop:master | |
git branch -M develop master |
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
if [ -f "$rvm_path/scripts/rvm" ]; then | |
source "$rvm_path/scripts/rvm" | |
if [ -f ".ruby-version" ]; then | |
rvm use `cat .ruby-version` | |
fi | |
if [ -f ".ruby-gemset" ]; then | |
rvm gemset use `cat .ruby-gemset` | |
fi |