This file contains hidden or 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
/* | |
Redux console output for development | |
*/ | |
const addLoggingToDispatch = (store) => { | |
const rawDispatch = store.dispatch; | |
if (!console.group) { | |
return rawDispatch; | |
} | |
return (action) => { |
This file contains hidden or 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
"use strict"; | |
const HTTP = require("http"); | |
const PATH = require("path"); | |
const URL = require("url"); | |
const FS = require("fs"); | |
const PORT = 8080; | |
let headers = { "Content-Type": "text/html" }; |
This file contains hidden or 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
function EmailAddress(email) { | |
this.parts = email.split("@"); | |
this.local = this.parts[0]; | |
this.domain = this.parts[1]; | |
this.domainParts = this.domain ? this.domain.split(".") : ""; | |
this.host = this.domainParts ? this.domainParts[0] : ""; | |
this.tld = this.domainParts ? this.domainParts[this.domainParts.length - 1] : ""; | |
} | |
EmailAddress.prototype = { |
This file contains hidden or 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
// Four ways to load JS: | |
// The jQuery way: | |
$(document).ready(function() { | |
// code to load | |
}); | |
// The jQuery Shorthand way: | |
$(function() { | |
// code to load |