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 createError = require('http-errors'); | |
var express = require('express'); | |
var path = require('path'); | |
var cookieParser = require('cookie-parser'); | |
var logger = require('morgan'); | |
var hbs = require('express-handlebars') | |
var indexRouter = require('./routes/index.js'); | |
var aboutRouter = require('./routes/about.js'); | |
var partnersRouter = require('./routes/partners'); |
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { Route, Link, BrowserRouter as Router, Switch } from 'react-router-dom'; | |
import { Provider } from 'react-redux'; | |
import { store } from './REDUX/store'; | |
import './index.css'; | |
import App from './App'; | |
import { Manage } from './components/Delta/Manage'; | |
import { NewList } from './components/Delta/NewList'; | |
import { Share } from './components/Delta/Share'; |
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
class Group { | |
// Your code here. | |
constructor(group){ | |
this.group = group; | |
} | |
add(num) { | |
let index = this.group.indexOf(num); | |
if (index === -1) { | |
this.group.push(num) | |
}; |
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
#Hangman | |
import random | |
#def hangman fuction | |
def hangman(spelling_word_list): | |
#if there are words on the spelling list, "welcome, do you want to play?" | |
if spelling_word_list: | |
print("Welcome to hangman!\n") |
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
//https://gist.github.com/74bd26dd414b4fae14b218919d20d458 | |
const prompt = require('prompt-sync')({sigint: true}); | |
const hat = '^'; | |
const hole = 'O'; | |
const fieldCharacter = '░'; | |
const pathCharacter = '*'; | |
//define class |