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 * as React from 'react'; | |
import { Form, Formik } from 'formik'; | |
import * as yup from 'yup' | |
// FormField, FormStatus, SubmitButton, and Flex are all custom components in our project | |
const LoginValidationSchema = yup.object().shape({ | |
email: yup.string().label('Email') | |
.email() | |
.required(), | |
password: yup.string().label('Password') |
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 readline = require('readline'); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}) | |
/* using callbacks (naive) */ | |
function dialog() { | |
rl.question('what is your name?', function(name) { | |
console.log('hi ' + name) |
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 with handlebars installed | |
const express = require("express"); | |
const exphbs = require("express-handlebars"); | |
const app = express(); | |
app.engine("handlebars", exphbs()); | |
app.set("view engine", "handlebars"); | |
app.get("/", (req, res) => { | |
res.render("home"); |
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 app = express(); | |
app.get("/", (req, res) => { | |
res.send("hello world"); | |
}); | |
app.listen(3000, () => { | |
console.log("Express auth tutorial running on http://localhost:3000"); | |
}); |
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 getTimer = (time, content) => new Promise((resolve, reject) => { | |
window.setTimeout(() => { | |
resolve(content || 'hello!'); | |
}, time); | |
}) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Linux WebBar</title> | |
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,400i" rel="stylesheet"> |
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
@-moz-document domain("gitkraken.com") { | |
.board-bg { | |
background:url('https://farm1.staticflickr.com/659/21310226281_a60b966511_o_d.jpg'); | |
background-size: cover; | |
background-position: center center; | |
} | |
.column-bg { | |
background: rgba(51, 54, 63, 0.5); | |
} | |
.card-bg { |
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 Promise from 'promise-polyfill'; | |
import debounce from 'lodash/debounce'; | |
import Vue from 'vue' | |
import AsyncComputed from 'vue-async-computed' | |
import App from './App' | |
import router from './router' | |
import AdController from './controllers/adcontroller.js'; | |
// import ChatController from './controllers/chatcontroller.js'; |
NewerOlder