Skip to content

Instantly share code, notes, and snippets.

View drewminns's full-sized avatar
🤙
I do stuff

Drew Minns drewminns

🤙
I do stuff
View GitHub Profile
@drewminns
drewminns / gist:7414623
Created November 11, 2013 15:12
Meta Viewport tag
<meta name="viewport" content="width=device-width, initial-scale=1">
@drewminns
drewminns / SassMeister-input.scss
Created January 15, 2014 15:49
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
@mixin size($width, $height) {
$widthpx: ();
$heightpx: ();
@each $i in $width {
$widthpx: append($widthpx, $i + px);
@drewminns
drewminns / gist:8921640
Created February 10, 2014 18:41
Indentation in an HTML file. It does not matter, but is simply used to provide readability.
<html>
<head>
//some code
</head>
<body>
//some code
</body>
</html>
<!--Is the same as-->
"views" : [
{
"Scarborough Subway" : "Build the council-approved and fully funded three-stop subway extension to the Scarborough Subway RT",
"Transit Expansion" : "Build a downtown relief line subway, which he calls the 'Yonge St. relief line.' (Has not explained funding plan.)",
"Land Transfer Tax" : "No position yet",
"Property Taxes" : "Keep property taxes increases at or below the rate of inflation",
"Garbage Collection" : "Outsource garbage collection east of Yonge St.",
"Gardiner Expressway" : "No specific position yet, but would not support any option that makes commute times longer",
"Island Airport Jets" : "Opposed immediate decision on Porter Airlines proposal for Island Airport Jets and an expanded runway at the island airport; says dozens of key questions remain unanswered",
"Privatization" : "Says he is wary of 'fire sales,' and views Hydro sale in that category; no other position/proposals yet",
"views" : [
{
"scarborough" : [{
"support" : true,
"policy" : "shit goes here"
}],
"expansion" : [{
"support" : false,
"policy" : "shit goes here"
}]
{
"views" :
{ "events" :
{
"support" : false,
"policy" : "No proposals yet"
},
"rankedBallots" :
{
"support" : false,
{
"count": 5,
"next": null,
"previous": null,
"results": [
{
"firstName": "Olivia",
"lastName": "Chow",
"birthDate": "1957-03-24",
"politicalAffiliation": "New Democratic Party of Canada",
@drewminns
drewminns / gist:426520ba0b36d8463a34
Created May 21, 2014 23:25
How to access Craigslist RSS Feeds for an AJAX/JSON Request
https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://toronto.en.craigslist.ca/web/index.rss&num=100&output=json
@drewminns
drewminns / FontFace Mixin
Created May 26, 2014 21:19
FontFace Mixin
// Use this mixin to help embed webfonts in your page.
@mixin importfont($font-family, $font-filename, $font-weight : normal, $font-style :normal, $font-stretch : normal) {
@font-face {
font-family: '#{$font-family}';
src: url('#{$font-filename}.eot');
src: url('#{$font-filename}.eot?#iefix') format('embedded-opentype'),
url('#{$font-filename}.woff') format('woff'),
url('#{$font-filename}.ttf') format('truetype'),
url('#{$font-filename}.svg##{$font-family}') format('svg');
font-weight: $font-weight;
<h1 id="css-grid-systems">CSS Grid Systems</h1>
<p>Within graphic design circles, a grid system is used to structure content and create organize elements on a page. It is used to create columns that span the page at different widths, and maintain equal margins between.</p>
<p>Within web design, it can be used to help layout designs and build your structure quickly, as well as provide an easy route for making your site responsive.</p>
<h2 id="what-does-it-look-like">What does it look like?</h2>
<h3 id="bricks">Bricks</h3>