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
=LOWER(CONCATENATE(DEC2HEX(RANDBETWEEN(0;POWER(16;8));8);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;4));4);"-";"4";DEC2HEX(RANDBETWEEN(0;POWER(16;3));3);"-";DEC2HEX(RANDBETWEEN(8;11));DEC2HEX(RANDBETWEEN(0;POWER(16;3));3);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;8));8);DEC2HEX(RANDBETWEEN(0;POWER(16;4));4))) |
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
extension AppDelegate: AWSCognitoIdentityInteractiveAuthenticationDelegate { | |
func startPasswordAuthentication() -> AWSCognitoIdentityPasswordAuthentication { | |
if(self.navigationController == nil) { | |
self.navigationController = self.window?.rootViewController as? UINavigationController | |
} | |
if(self.loginViewController == nil) { | |
self.loginViewController = self.storyboard?.instantiateViewController(withIdentifier: "LoginViewController") as? LoginViewController | |
} |
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
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
// setup logging for AWS & Cognito | |
AWSDDLog.sharedInstance.logLevel = .verbose | |
AWSDDLog.add(AWSDDTTYLogger.sharedInstance) | |
// setup cognito config | |
self.cognitoConfig = CognitoConfig() | |
// setup cognito | |
setupCognitoUserPool() |
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> | |
<link href="//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.13-beta/nv.d3.min.css" rel="stylesheet"></link> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.3.9/d3.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.13-beta/nv.d3.min.js"></script> | |
</head> | |
<body> | |
<div id="pieChart"> | |
<svg></svg> | |
</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
// Include Both Express and Socket.io | |
var express = require('express'); | |
var socketIO = require('socket.io'); | |
// Include the core modules for http and path | |
var path = require('path'); | |
var http = require('http'); | |
// Setup Express to serve static files from static directory | |
var app = express(); |
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
# Installing Express and Socket.io | |
npm install express --save-dev | |
npm install socket.io --save-dev | |
# Installing Dependencies (for other developers) | |
npm install | |
# Updating Dependencies (if new versions were released) | |
npm update |
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
{ | |
"name" : "sample-node-application", | |
"version" : "0.0.1", | |
"author" : "David Tucker" | |
} |
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 http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('The Web Server is Running\n'); | |
}).listen(8095); | |
console.log('Server Running on Port 8095'); |
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
--- | |
title: About David Tucker | |
subtitle: Software developer and architect, author, speaker, and digital strategist | |
author: David tucker | |
date: 2013-01-02 | |
template: about.html | |
keywords: david tucker,developer,architect,author,speaker | |
changefreq: monthly | |
priority: 0.7 | |
--- |
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
{% extends "layout.html" %} | |
{% block canonical %}{{ url }}{{ page.url }}{% endblock %} | |
{% block title %}{{ page.title }}{% endblock %} | |
{% block meta %} | |
{{ super() }} | |
{% if page.metadata.keywords %}<meta name="keywords" content="{{ page.metadata.keywords }}">{% endif %} | |
{% endblock %} | |
{% block content %} | |
<div class="row"> | |
<div class="twelve columns"> |
NewerOlder