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": "ng-tutorial", | |
"version": "0.0.0", | |
"license": "MIT", | |
"scripts": { | |
"pug:watch": "./node_modules/onchange/cli.js \"./src/app/**/*.pug\" -d 250 -- node node_modules/pug-cli/index.js {{changed}}", | |
"dev": "f(){ npm run pug:watch & ng serve ;};f", | |
"ng": "ng", | |
"start": "ng serve", | |
"build": "ng build --prod", |
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
/** | |
* Catch all promise function | |
* @param {Object} func | |
* @param {Request} request | |
* @param {Response} response | |
*/ | |
const fn = (func, request, response) => { | |
console.log(request.method, request.originalUrl); | |
const params = Object.assign({}, request.params, request.query, request.body); | |
try { |
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
www.brackleypartners.co.uk/ourTeam.html | |
www.brackleypartners.co.uk/contactUs.html | |
www.brackleypartners.co.uk/professionalChangeWithMeasureWork.html | |
www.brackleypartners.co.uk/managementDevelopmentProgrammes.html | |
www.brackleypartners.co.uk/madeToMeasure.html | |
www.brackleypartners.co.uk/howDoesMadeToMeasureWork.html | |
www.brackleypartners.co.uk/ourValues.html | |
www.brackleypartners.co.uk/whatIsMadeToMeasure.html | |
www.brackleypartners.co.uk/executiveCoaching.html | |
www.brackleypartners.co.uk/occupationalAssessment.html |
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
function doPost(req) { | |
var jsonString = req.postData.getDataAsString(); | |
var data = JSON.parse(jsonString); | |
var sheetId = data.spreadsheetId; | |
var spreadsheet = SpreadsheetApp.openById(sheetId); | |
var sheet = spreadsheet.getSheets()[0]; | |
// Get the last row (The one we want to write into) | |
var rowIndex = sheet.getLastRow() + 1; | |
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> | |
<title>My first three.js app</title> | |
<style> | |
body { margin: 0; } | |
canvas { width: 100%; height: 100% } | |
</style> | |
</head> | |
<body> |
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> | |
<title>My first three.js app</title> | |
<style> | |
body { margin: 0; } | |
canvas { width: 100%; height: 100% } | |
</style> | |
</head> | |
<body> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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> | |
<title>My first three.js app</title> | |
<style> | |
body { margin: 0; } | |
canvas { width: 100%; height: 100% } | |
</style> | |
</head> | |
<body> |
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 functions = require('firebase-functions'); | |
const express = require('express'); | |
const cors = require('cors'); | |
const bodyParser = require('body-parser'); | |
/** | |
* Route all firebase function requests through to express | |
* See https://codeburst.io/express-js-on-cloud-functions-for-firebase-86ed26f9144c | |
*/ | |
const 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
const DEMO_COMPONENT_NAME = "demoComponent"; | |
// before angular 1.5 component : directive was the way to create component | |
const demoComponent = { | |
template: '<h1>Hello world</h1><h2>{{$ctrl.domAttribute}}</h2>', | |
bindings: { | |
domAttribute: '@', | |
onSomething: '&', // function call out | |
demoAttr2: "<" // Data in |