Skip to content

Instantly share code, notes, and snippets.

View jslnriot's full-sized avatar

James Buczkowski jslnriot

View GitHub Profile
const express = require('express');
// Passport
const passport = require('passport');
const GoogleStrategy = require('passport-google-oauth20').Strategy;
const keys = require('./config/keys');
const app = express();
class MessageInput extends React.Component {
state = {
value: '',
}
onChange = (e) => {
this.setState({
value: e.target.value,
})
};
function createStore(reducer, initialState) {
let state = initialState;
// Setup listners to keep track of when the state is changed
// to triger rerenders (observer pattern)
const listeners = [];
const subscribe = (listener) => (
listeners.push(listener)
);
{
"name": "SpinMyVinylServer",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node server.js",
"test": "export NODE_ENV=test || SET \"NODE_ENV=test\" && mocha ./**/*.test.js",
"test-watch": "nodemon --exec 'npm test'"
},
const argumentList = process.argv;
const addThese = argumentList.slice(2,argumentList.length);
let sum = 0;
let solution = addThese.forEach((value) => {
// convert to a number
sum += Number(value);
return sum;
});
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
$Color1: navy; // named color value
$Color2: #333333; // hex color value
$StringVar: " with Sass"; // string variable
$FontSize: 18px; // numeric value
$border: 1px solid $Color2; // multi-value variable
.container {
width: 960px;
margin: 0 auto;
padding: 15px 15px 15px 15px;
color: #333333;
}
.container h1 {
font-size: 54px;
color: navy;
border: 1px solid #333333;
.container {
width: 960px;
margin: 0 auto;
border: 1px solid navy;
padding: 15px 15px 15px 15px;
color: #333333;
}
.container h1 {
text-align: center;
border: 1px solid navy;
<div class='container'>
<h1>SASS - Nestings</h1>
<h2><span>Basic</span> - Getting Started</h2>
<p id='mypara'>Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed do eiusmod tempor <br>
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi</p>
</div>
<div class='container'>
<h1>SASS - Variables</h1>
<h2><span>Basic</span> - Getting Started</h2>
<p id='mypara'>Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed do eiusmod tempor <br>
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi</p>