Skip to content

Instantly share code, notes, and snippets.

View rknightuk's full-sized avatar

Robb Knight rknightuk

View GitHub Profile
@rknightuk
rknightuk / Git log for author with date range.md
Last active July 25, 2018 07:37
Git log for specific date range.

Everything since a specific month or date:

git log --author="Your Name" --since="month || date" --pretty=format:"%ad - %s

Everything in a specific date range:

git log --author="Your Name" --since="month || date" --before="month || date" --pretty=format:"%ad - %s

Output:

@rknightuk
rknightuk / fibonacci
Last active December 22, 2015 08:59
Fibonacci sequence
<?php
$number = 8; // Index of fibonacci number
if ($number < 3) {
$answer = 1;
echo "Answer: " . $answer;
}
else {
@rknightuk
rknightuk / Focus Mode
Created August 4, 2013 15:19
Focus Mode now not used on robblewis.me
<a href="#" class="focus">focus</a></p>
<script type="text/javascript">
$(".focus").click(function (e) {
e.preventDefault();
if($(this).text() == 'focus')
{
$("header").slideToggle("slow");
$("nav").slideToggle("slow");
// $(".meta").slideToggle("slow");