Skip to content

Instantly share code, notes, and snippets.

View zoster's full-sized avatar

zoe zoster

  • rTraction
  • London ON
View GitHub Profile
<style>
.custom-map-container {
display: grid;
column-gap: 2em;
grid-template-columns: 1fr 1fr;
margin-left: 3em;
}
.custom-map-container .map-container{
background-image: url("https://images.squarespace-cdn.com/content/62b5ba766f4a1703b3756437/1677868588736-SOBGUBGGB9AN9K3VKLL9/SWOntario.png?content-type=image%2Fpng");
background-size: contain;
@zoster
zoster / Error Log Debugging
Created April 28, 2013 19:29
Debugging with an error log
//setup
error_reporting(E_ALL);
ini_set('error_log','error.log');
//use
error_log($variable);
error_log("\n".var_export($message, true));
@zoster
zoster / gist:5117072
Created March 8, 2013 15:10
Layout that centers rows with different numbers of block elements, using inline-block. Works in IE6+
<!DOCTYPE html>
<head>
<title></title>
<style>
div {
background:#ddd;
width:870px;
margin:auto;
text-align: center;
}
@zoster
zoster / gist:4595896
Last active December 11, 2015 11:48
Build an update folder with all files changed in a git repo since a specific commit.
cp --parents $(git diff --name-only --diff-filter=ACMRTUXB <SHA>) /c/update_folder/