This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<picture> | |
<source media="(min-width: 1200px)" | |
srcset="https://res.cloudinary.com/demo/image/upload/c_scale,w_900,dpr_auto,f_auto/sample.jpg"> | |
<source media="(min-width: 900px)" | |
srcset="https://res.cloudinary.com/demo/image/upload/c_scale,w_600,dpr_auto,f_auto/sample.jpg"> | |
<img src="https://res.cloudinary.com/demo/image/upload/c_scale,w_300,dpr_auto,f_auto/sample.jpg"> | |
</picture> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const options = { | |
root: null, // use null for viewport | |
rootMargin: '0px', | |
threshold: 1.0 | |
}; | |
const observer = new IntersectionObserver(callback, options); | |
const target = document.querySelector('#someSection'); | |
observer.observe(target); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": 1009189, | |
"name": "Black Widow", | |
"description": "", | |
"thumbnail": { | |
"path": "http://i.annihil.us/u/prod/marvel/i/mg/f/30/50fecad1f395b", | |
"extension": "jpg" | |
}, | |
"resourceURI": "http://gateway.marvel.com/v1/public/characters/1009189", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
id | |
name | |
description | |
thumbnail | |
resourceURI | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": 1009189, | |
"name": "Black Widow", | |
"description": "", | |
"modified": "2016-01-04T18:09:26-0500", | |
"thumbnail": { | |
"path": "http://i.annihil.us/u/prod/marvel/i/mg/f/30/50fecad1f395b", | |
"extension": "jpg" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************** | |
This is the Adafruit GPS library - the ultimate GPS library | |
for the ultimate GPS module! | |
Tested and works great with the Adafruit Ultimate GPS module | |
using MTK33x9 chipset | |
------> http://www.adafruit.com/products/746 | |
Pick one up today at the Adafruit electronics shop | |
and help support open source hardware & software! -ada |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************** | |
This is our GPS library | |
Adafruit invests time and resources providing this open source code, | |
please support Adafruit and open-source hardware by purchasing | |
products from Adafruit! | |
Written by Limor Fried/Ladyada for Adafruit Industries. | |
BSD license, check license.txt for more information | |
All text above must be included in any redistribution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This #include statement was automatically added by the Spark IDE. | |
#include "Adafruit_GPS.h" | |
#include <math.h> | |
#define mySerial Serial1 | |
Adafruit_GPS GPS(&mySerial); | |
// Set GPSECHO to 'false' to turn off echoing the GPS data to the Serial console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Global Vars | |
$basefontsize: 16 !default; | |
// Mixins | |
// input pixel value unitless: 8 vs 8px | |
// ex. @include rem(padding, 8 12 16 24) | |
@mixin rem($property, $px: $basefontsize) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<header> | |
<code> | |
.mod--foo { | |
@include column-span(6, 3); | |
} | |
<br>// $column-count, $offset[optional] | |
<br>// To do: properly clear first in row | |
</code> |
NewerOlder