This file contains hidden or 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
``` | |
paste your code here | |
``` |
This file contains hidden or 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 url = "http://api.mysite.com/json" | |
// arr is an array containing values for a parameter | |
$q.all(arr.map(function(element) { | |
// return promises | |
return $http.get(url, {param: element}); | |
})).then(function(data) { | |
// do something with data | |
// data is an array of responses | |
console.log(data); | |
var transformedData = data.map(function(item) { |
This file contains hidden or 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
/* | |
When setting the primary font stack, apply it to the Pure grid units along | |
with `html`, `button`, `input`, `select`, and `textarea`. Pure Grids use | |
specific font stacks to ensure the greatest OS/browser compatibility. | |
*/ | |
html, button, input, select, textarea, | |
.pure-g [class *= "pure-u"] { | |
/* Set your content font stack here: */ | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} |
This file contains hidden or 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
[ | |
{"text": "You can do anything, but not everything.", | |
"author": "David Allen"}, | |
{"text": "Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.", | |
"author": "Antoine de Saint-Exupéry"}, | |
{"text": "The richest man is not he who has the most, but he who needs the least.", | |
"author": "Unknown Author"}, |