Skip to content

Instantly share code, notes, and snippets.

View alfredleo's full-sized avatar
:octocat:
Working from Ground Zero

Alfred alfredleo

:octocat:
Working from Ground Zero
  • ITMED
  • Tashkent
View GitHub Profile
@alfredleo
alfredleo / usage git lg, git lg -p
Last active February 19, 2019 13:15
Beautiful git log
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@nerandell
nerandell / code-review-checklist.md
Last active April 22, 2024 06:21
PHP Code Review Guidelines

Make sure these boxes are checked before submitting/approving the PR

General

  • The code works
  • The code is easy to understand
  • Follows coding conventions
  • Names are simple and if possible short
  • Names are spelt correctly
  • Names contain units where applicable
  • There are no usages of magic numbers
@mbischof
mbischof / yii-drop-all-tables-from-database.php
Last active October 1, 2023 18:53
How to drop all tables from database using yii
<?php
$tables = Yii::app()->db->schema->getTableNames();
foreach ($tables as $table) {
Yii::app()->db->createCommand()->dropTable($table);
}