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
Show hidden characters
{ | |
"presets": [ | |
"@babel/preset-react", | |
["@babel/preset-env", { | |
"targets": { | |
"browsers": ["last 2 versions", "safari >= 7"] | |
} | |
}] | |
] | |
} |
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
/* | |
index.js | |
*/ | |
import React from "react"; | |
import { render } from "react-dom"; | |
import { Provider } from "react-redux"; | |
import { createStore } from "redux"; | |
import Header from "./Header"; | |
import UserTasks from "./UserTasks"; |
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
{ | |
app: { | |
users: { | |
user01: { | |
id: "user01", | |
name: "John" | |
}, | |
user02: { | |
id: "user02", | |
name: "Bob" |
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
List<ResultType> resultsList = new ArrayList<>(); | |
final Double TWO = new Double(2); | |
final Double LIMIT = new Double(10); | |
for(ItemType item: itemsList) { | |
if(Math.pow(item.x, TWO) + Math.pow(item.y, TWO) < Math.pow(LIMIT, TWO)) { | |
resultsList.add(item.toResultType()); | |
} | |
} |
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
public Boolean isWithinCircle(Double x, Double y, Double radius) { | |
final Double TWO = new Double(2); | |
return (Math.pow(x, TWO) + Math.pow(y, TWO)) < Math.pow(radius, TWO); | |
} | |
public List<PhotosCollection> getPhotosCollectionsWithinRadius(List<Locations> locationsList) { | |
List<PhotosCollection> photosCollection = new ArrayList<>(); | |
final Double RADIUS = new Double(10); | |
for(Location location: locationsList) { |
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
public List<PhotosCollection> getPhotosCollectionsWithinRadius(List<Locations> locationsList) { | |
List<PhotosCollection> photosCollection = new ArrayList<>(); | |
final Double TWO = new Double(2); | |
final Double RADIUS = new Double(10); | |
for(Location location: locationsList) { | |
if((Math.pow(x, TWO) + Math.pow(y, TWO)) < Math.pow(RADIUS, TWO)) { | |
photosCollection.add(location.getPhotosCollection()); | |
} |
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
List<ResultType> resultsList = new ArrayList<>(); | |
final Double TWO = new Double(2); | |
final Double LIMIT = new Double(10); | |
for(ItemType item: itemsList) { | |
// add items' photos located within circle with radius LIMIT | |
// to a collection of photos | |
if(Math.pow(item.x, TWO) + Math.pow(item.y, TWO) < Math.pow(LIMIT, TWO)) { | |
resultsList.add(item.toResultType()); | |
} | |
} |
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
module.exports = { | |
"extends": [ | |
"standard", | |
"plugin:react/recommended", | |
"prettier", | |
"prettier/react", | |
"prettier/standard" | |
], | |
"plugins": [ | |
"react", |
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 LOGLEVELS = { | |
mute: -1, | |
error: 0, | |
warn: 1, | |
info: 2, | |
debug: 3 | |
} | |
let currentLevel = LOGLEVELS.mute |
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
Delivered-To: [email protected] | |
Received: by 10.12.157.78 with SMTP id n14csp706940qvf; | |
Wed, 5 Jul 2017 05:20:59 -0700 (PDT) | |
X-Received: by 10.107.27.210 with SMTP id b201mr14798702iob.76.1499257259393; | |
Wed, 05 Jul 2017 05:20:59 -0700 (PDT) | |
ARC-Seal: i=1; a=rsa-sha256; t=1499257259; cv=none; | |
d=google.com; s=arc-20160816; | |
b=O/TbkclP2a8BxzCXrJudncahAmEFhMjnEUYOoYX0rXIKPuyip8kdP5qdgyimwuyCb+ | |
IslnQuAy1xdQ1VwOZXOrqIoztwkwDMMoZzK4uH/e8IQKLBssnKX5itu3oBOaV+XPevpg | |
BTNrx8XdIt3Z6NLrKCjjaeWXIz4kiaaSlBOqGgUcRfe90WZvFLvJmXnfsxOp4QSWLD9f |