Skip to content

Instantly share code, notes, and snippets.

Radu Murzea SoboLAN

Block or report user

Report or block SoboLAN

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@SoboLAN
SoboLAN / nr.days.in.month.php
Created Mar 30, 2017
Get number of days in a month
View nr.days.in.month.php
<?php
function isLeapYear($year)
{
return $year % 100 == 0
? $year % 400 == 0
: $year % 4 == 0;
}
function getMonthDayCount($year, $month)
View git-show-list-of-tags
git log --tags --simplify-by-decoration --pretty="format:%ai %d"
View git-list-remote-branches.sh
#!/bin/sh
for k in `git branch -r | perl -pe s\/\^\.\.\/\/`; do echo -e `git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k -- | head -n 1`\\t$k; done | sort -r
You can’t perform that action at this time.