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
// export const snapshotToArray = snapshot => { | |
// let returnArr = []; | |
// snapshot.forEach(childSnapshot => { | |
// let item = childSnapshot.val(); | |
// item.key = childSnapshot.key; | |
// returnArr.push(item); | |
// }); | |
// return returnArr; |
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
package main | |
import "fmt" | |
func main() { | |
k := 0 | |
j := 1 | |
for k < 12 { | |
k++ | |
for j < k*2 { |
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
import React, { Component } from "react"; | |
import firebase from "../config/firebase"; | |
import { | |
FormGroup, | |
ControlLabel, | |
FormControl, | |
Button, | |
Form | |
} from "react-bootstrap"; | |
import "./components-css/login.css"; |
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
const options = [ | |
{ value: "AL", label: "AL - Alabama" }, | |
{ value: "AK", label: "AK - Alaska" }, | |
{ value: "AZ", label: "AZ - Arizona" }, | |
{ value: "AR", label: "AR - Arkansas" }, | |
{ value: "CA", label: "CA - California" }, | |
{ value: "CO", label: "CO - Colorado" }, | |
{ value: "CT", label: "CT - Connecticut" }, | |
{ value: "DE", label: "DE - Delaware" }, | |
{ value: "DC", label: "DC - District Of Columbia" }, |
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
<html> | |
<head> | |
<title>My Now Amazing Webpage</title> | |
<link rel="stylesheet" type="text/css" href="slick/slick.css"/> | |
<link rel="stylesheet" type="text/css" href="slick/slick-theme.css"/> | |
<style type="text/css"> | |
.carousel{ | |
height: 200px; | |
width:90%; |
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
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: circleci/node:8 | |
steps: | |
- checkout | |
- restore_cache: # special step to restore the dependency cache | |
key: dependency-cache-{{ checksum "package.json" }} | |
- run: |
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
function fbCopy(oldRef, newRef) { | |
return Promise((resolve, reject) => { | |
oldRef.once('value').then(snap => { | |
return newRef.set(snap.val()); | |
}).then(() => { | |
console.log('Done!'); | |
resolve(); | |
}).catch(err => { | |
console.log(err.message); | |
reject(); |
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
https://frontarm.com/navi/en/guides/getting-started/ | |
"including any data you’ve declared on you routes." | |
*your |
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
import React, { Component } from "react"; | |
import client from "../../sanity/api"; | |
import "./avantGarde.scss"; | |
const query = `*[_type == "photos" && categories[]-> title match "Avant*"] { | |
_id, | |
album, | |
"imageUrl": mainImage.asset->url, | |
title | |
}[0...50] |