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
// sql is a data store | |
import sql from "./db" | |
// auth identifies and validates requests, and is correctly | |
// implemented | |
import auth from "./auth" | |
import express from "express" | |
const app = express() | |
app.get("/dashboard", auth, (req, res) => { | |
sql.execute("SELECT user, message FROM messages WHERE DATE(timestamp) = DATE(NOW())") | |
.then((rows) => { |
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
<a href="https://www.eventbrite.com/e/newcomers-longtimers-24th-annual-home-tour-tickets-45257777230" target="_blank"> | |
<img src="sitebuilder/images/eventbrite_1_-_Copy-327x112.jpg" width="327" height="112" border="0" alt="Home Tour Eventbrite" /> | |
</a> |
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
### Keybase proof | |
I hereby claim: | |
* I am nnnnathann on github. | |
* I am nnnnathann (https://keybase.io/nnnnathann) on keybase. | |
* I have a public key whose fingerprint is 654C 3FDA 5CF2 BD5F 3A4D 0F19 6306 1927 1890 9D60 | |
To claim this, I am signing this object: |
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
Runtime Error | |
SyntaxError: Unexpected token ... | |
at eval (native) | |
at JSDOMEnvironment.runSourceText (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/environments/JSDOMEnvironment.js:36:24) | |
at Loader._execModule (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/HasteModuleLoader/HasteModuleLoader.js:205:43) | |
at Loader.requireModule (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/HasteModuleLoader/HasteModuleLoader.js:760:14) | |
at Loader._generateMock (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/HasteModuleLoader/HasteModuleLoader.js:243:34) | |
at Loader.requireMock (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/HasteModuleLoader/HasteModuleLoader.js:677:45) | |
at Loader.requireModuleOrMock (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/HasteModuleLoader/HasteModuleLoader.js:788:19) | |
at Object.eval (/home/rof/src/github.com/oberd/mountain-frontend/node_modules/@oberd/redux-middleware-koa/node_modules/histor |
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
{ | |
"reports": [ | |
{ | |
"name": "mountain", | |
"repositories": [ | |
"oberd/mountain-frontend", | |
"oberd/mountain-service", | |
"oberd/indexer-worker", | |
"oberd/mountain-dashboards" | |
], |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/numeral.js/1.5.3/numeral.min.js"></script> | |
</head> | |
<body> | |
<h3> |
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
#!/bin/bash | |
VERSION=${1:-v2.0.4} | |
ETCD_VERSION_STRING="etcd-$VERSION-darwin-amd64" | |
curl -L https://github.com/coreos/etcd/releases/download/$VERSION/$ETCD_VERSION_STRING.zip -o $ETCD_VERSION_STRING.zip | |
unzip $ETCD_VERSION_STRING.zip | |
sudo cp $ETCD_VERSION_STRING/etcdctl /usr/local/bin/ | |
sudo chmod +x /usr/local/bin/etcdctl | |
rm -r $ETCD_VERSION_STRING |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
/*jshint indent:2 */ | |
'use strict'; | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var fs = require('fs'); | |
var olive = require('oberd-olive'); | |
var livereload = require('gulp-livereload'); | |
var lr = require('tiny-lr'); | |
var server = lr(); |
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 util = require('util'), | |
colors = require('colors'), | |
http = require('http'), | |
httpProxy = require('http-proxy'); | |
var localServerIp = '192.168.1.12'; | |
// | |
// Http Proxy Server with Proxy Table | |
// | |
httpProxy.createServer({ |
NewerOlder