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
{ | |
"hits": 400, | |
"page": 15, | |
"pagePrev": 1, | |
"pageNext": 3, | |
"pageCount": 17 | |
} |
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 promiseWhile = (url, condition) => { | |
let nextUrl; | |
let counter = 0; | |
if (!nextUrl) { | |
nextUrl = url; | |
} | |
const list = []; | |
const fetchData = (list) => { | |
console.log(`Counter: ${counter++}`); | |
console.log(`Next Url: ${nextUrl}`); |
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
{"data":[{"url":"https://www.ookiy.com/u-s-top-court-preserves-alabama-campaign-finance-curbs-reuters/","source":2,"created":1493042349,"user_id":124197757,"visible":1,"comments":"() ookiy.com/u-s-top-court-…\n#political #US #News #political #TaxDay #CountrySongAFilm #FirstTimeIHeard #FelizMartes #GeneralElection ...","social_feed_id":795777,"social_post_id":"856507810825330692","social_id":"twitter","phash":null,"height":630,"width":1200,"original_image":"https://www.ookiy.com/wp-content/uploads/2017/04/trump-administration-says-no-u-s-trading-partners-manipulate-currency-reuters.png","author":"{\"name\":\"ookiy_news\",\"link\":\"http://twitter.com/ookiy_news\",\"picture\":\"https://res-5.cloudinary.com/tint/image/twitter_name/c_fill,h_75,w_75/ookiy_news\",\"username\":\"ookiy_news\",\"fullname\":\"ookiy_news\"}","embed":"{\"type\":\"\"}","image":"https://res-4.cloudinary.com/tint/image/fetch/c_limit,f_auto,fl_lossy,w_300/https://www.ookiy.com/wp-content/uploads/2017/04/trump-administration-says-no-u-s-tradi |
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 _pipe = (func1, func2) => (...args) => func2(func1(...args)); | |
const pipe = (...funcs) => funcs.reduce(_pipe); | |
// const myFunc = pipe(add(), double(), triple()); | |
// myFunc(2, 2); |
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": 2, | |
"messages": [ | |
{ | |
"attachment": { | |
"type": "image", | |
"payload": { | |
"url": "https://placeholdit.imgix.net/~text?txtsize=33&txt=500%C3%97500&w=500&h=500" | |
} | |
} |
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
{ | |
"messages": [ | |
{ | |
"attachment": { | |
"type": "image", | |
"payload": { | |
"url": "https://petersapparel.parseapp.com/img/item101-thumb.png" | |
} | |
} | |
} |
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
.what-we-do-cards { | |
@include clearfix; | |
border-top: 10px solid rgba(255, 255, 255, .46); | |
color: $white; | |
padding-bottom: 4em; | |
overflow: hidden; // added for pseudo-element | |
position: relative; // added for pseudo-element | |
// Fixed-position background image | |
&::before { |
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
var timeout; | |
var breakpoints = { | |
xs: '(max-width: 419px)', | |
sm: '(min-width: 420px) and (max-width: 569px)', | |
md: '(min-width: 570px) and (max-width: 799px)', | |
lg: '(min-width: 800px) and (max-width: 999px)', | |
xl: '(min-width: 1000px)' | |
}; | |
Object.keys(breakpoints).forEach(function(breakpoint) { |
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
@function countRem($value) { | |
$remValue: $value / 16px; | |
@return $remValue * 1rem; | |
} | |
@mixin font-size($value) { | |
font-size: $value; | |
font-size: calculateRem($value); | |
} |