show dbs
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
<html ng-app="root"> | |
<div class="container" ng-controller="index"> | |
<div class="box margin-right" id="shopping-list"> | |
<h1>My Shopping List</h1> | |
<div id="errorMessage"><i class="icon-cross"></i>Please enter all inputs!</div> | |
<div id="successMessage"><i class="icon-checkmark"></i>Item added to shopping list!</div> | |
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
<html ng-app="root"> | |
<form id="shopping"> | |
<div class="container" ng-controller="index"> | |
<div class="box margin-right" id="shopping-list"> | |
<h1>My Shopping List</h1> | |
<div id="errorMessage"><i class="icon-cross"></i>Please enter all inputs!</div> | |
<div id="successMessage"><i class="icon-checkmark"></i>Item added to shopping list!</div> |
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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<h1><span>Password</span> Strength</h1> | |
<div class="container"> | |
<form id="myform" action="#"> |
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
<div class="header"> | |
<div class="container"> | |
<div id="branding"><img src="https://media.glassdoor.com/sqll/882830/andela-squarelogo-1466611084554.png" width="50px" height="50px" align="left"><h1><span class="highlight"></span></h1></div> | |
</div> | |
</div> | |
<section id="showcase"> | |
<div class="container"> | |
<div class="welcometext"> | |
<h1>Welcome</h1> |
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
<div id="showcase"> | |
<div class="container"> | |
<h1>Workout Timer</h1> | |
<div id="hours">00</div> | |
<small>hrs</small> | |
<div class="colon">:</div> | |
<div id="minutes">00</div> | |
<small>min</small> | |
<div class="colon">:</div> |
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
let array = [3,1,2] | |
let newArr = [] | |
const minimumSwaps = (array) => { | |
let count=0; | |
const expectedArr = array.slice().sort((a,b)=>{ | |
return a-b | |
}) | |
console.log(expectedArr) | |
let loc; |
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 express = require('express'); | |
const fetch = require('node-fetch'); | |
const redis = require('redis'); | |
const PORT = process.env.PORT || 5000; | |
const REDIS_PORT = process.env.PORT || 6379; | |
const client = redis.createClient(REDIS_PORT); | |
const app = express(); |