Skip to content

Instantly share code, notes, and snippets.

View devjack's full-sized avatar

Jack Skinner devjack

View GitHub Profile
@devjack
devjack / weekly-block.css
Last active May 27, 2018 09:46 — forked from pento/weekly-block.css
The Weekly Block
/**
* License: GPL-3.0+
*/
.weekly-link {
/*border-left: 3px solid rgba(0,0,0,.8);*/
border-left: 3px solid rgba(255, 160, 0, 1);
padding-left: 2em;
padding-right: 2em;
margin-bottom: 2em;
}
<?php
function factorial($n) {
if($n==0) return 1;
$t=$n--;
while ($n > 0) {
$t*=($n--);
}
return $t;
}