Skip to content

Instantly share code, notes, and snippets.

View NickFoden's full-sized avatar
🐯
I'm here live, i'm not a cat.

Nick Foden NickFoden

🐯
I'm here live, i'm not a cat.
View GitHub Profile
import React, { Component } from "react";
import firebase from "../config/firebase";
import {
FormGroup,
ControlLabel,
FormControl,
Button,
Form
} from "react-bootstrap";
import "./components-css/login.css";
package main
import "fmt"
func main() {
k := 0
j := 1
for k < 12 {
k++
for j < k*2 {
@NickFoden
NickFoden / firebase to array
Created March 2, 2018 21:28
Convert Firebase Response Object to an array
// export const snapshotToArray = snapshot => {
// let returnArr = [];
// snapshot.forEach(childSnapshot => {
// let item = childSnapshot.val();
// item.key = childSnapshot.key;
// returnArr.push(item);
// });
// return returnArr;
const generatePlayerBoard = (numberOfRows, numberOfColumns) => {
let board = [];
for (let i = 0; i < numberOfRows; i++){
let row = [];
for ( let j = 0; j < numberOfColumns; j++) {
row.push(' ');
}
board.push(row);
@NickFoden
NickFoden / Nick Available
Last active August 9, 2017 21:54
Nick Available
Eastern/ NY Times
8/10/17 - Thursday - 7:00-8:00
8/14/17 - Monday - 9:00-10:00, or 11:00-12:00
8/15/17 - Tuesday - 7:00-8:00, 8:00-9:00, 9:00-10:00, or 11:00-12:00
8/16/17 - Wednesday - 9:00-10:00
8/17/17 - Thursday - 7:00-8:00, 8:00-9:00, 9:00-10:00, 10:00-11:00, or 11:00-12:00
@nickfoden
@NickFoden
NickFoden / Clerk Challenge
Last active July 25, 2017 02:43
Clerk Challenge
let peopleInLine = [];
function tickets(peopleInLine) {
let ticket25 = 0;
let ticket50 = 0;
let ticket100 = 0;
for (i = 0; i < peopleInLine.length; i++) {
if (peopleInLine[i] === 100) {
if (ticket50 >= 1 && ticket25 >= 1) {
ticket50 -= 1;
ticket25 -= 1;
https://viridian-viscose.glitch.me/
https://wave-range.glitch.me
https://flannel-policeman.glitch.me
https://fortune-library.glitch.me
https://summer-antler.glitch.me
Header
https://glitch.com/edit/#!/burly-stage
Address Book
https://glitch.com/edit/#!/sudden-bean
@NickFoden
NickFoden / solutions.js
Created April 15, 2017 17:53
Solutions to Mongo Basics
var myRestaurant = {
... address: {},
... borough: "Queens",
... cuisine: "Colombian",
... grades: [],