Skip to content

Instantly share code, notes, and snippets.

View joetann's full-sized avatar

Joe Tannorella joetann

  • Crowdcube
  • Cardiff, Wales
View GitHub Profile
@mixin box-emboss($opacity, $opacity2){
box-shadow:white($opacity) 0 1px 0, inset black($opacity2) 0 1px 0;
}
@mixin emboss($color:#fcfcfc) {
background: $color;
@include background-image(linear-gradient($color, darken($color, 3%)));
@include box-shadow(darken($color, 10%) 0 0 0 1px inset, lighten($color, 10%) 0 0 0 1px inset);
}
@mixin inset-shadow($color:#fcfcfc) {
@include box-shadow($color 0 0 12px 1px inset, $color 1px 1px 1px 1px inset);
@joetann
joetann / PHP 24 hr select options
Created December 29, 2014 15:55
Generate a 24 hr select box
$start = "00:00";
$end = "23:30";
$tStart = strtotime($start);
$tEnd = strtotime($end);
$tNow = $tStart;
$timeSelect = "";
while($tNow <= $tEnd){
$time = date("H:i",$tNow);
@joetann
joetann / Texas_executed_prisoners
Last active October 9, 2015 07:13
This is dump of the TX execution data available online at: http://www.tdcj.state.tx.us/death_row/dr_executed_offenders.html. Some analysis of this data can be found here: http://texas.joetannorella.com
--
-- Table structure for table `offenders`
--
CREATE TABLE `offenders` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`execution_number` int(11) NOT NULL,
`offender_info` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`last_statement` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`first_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,