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
import multiply from './multiply'; | |
import sum from './sum'; | |
// import the CSS we want to use here | |
import './math_output.css'; | |
const totalMultiply = multiply(5, 3); | |
const totalSum = sum(5, 3); | |
// create the body |
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
import multiply from './multiply'; | |
import sum from './sum'; | |
const totalMultiply = multiply(5, 3); | |
const totalSum = sum(5, 3); | |
// create the body | |
const body = document.createElement("body"); | |
document.documentElement.appendChild(body); |
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
const path = require('path'); | |
module.exports = { | |
entry: './src/index.js', | |
output: { | |
path: path.resolve(__dirname, './dist/'), | |
filename: 'bundle.js' | |
}, | |
module: { | |
loaders: [ | |
{ |
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
import multiply from './multiply'; | |
import sum from './sum'; | |
const totalMultiply = multiply(5, 3); | |
const totalSum = sum(5, 3); | |
console.log(`Product of 5 and 3 = ${totalMultiply}`); | |
console.log(`Sum of 5 and 3 = ${totalSum}`); |
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
// the webpack bootstrap | |
(function (modules) { | |
// The module cache | |
var installedModules = {}; | |
// The require function | |
function __webpack_require__(moduleId) { | |
// Check if module is in cache | |
// Create a new module (and put it into the cache) | |
// Execute the module function | |
// Flag the module as loaded |
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
<html> | |
<head> | |
<script src="./dist/bundle.js""></script> | |
</head> | |
</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
<html> | |
<head> | |
<script src="src/sum.js"></script> | |
<script src="src/multiply.js"></script> | |
<script src="src/index.js"></script> | |
</head> | |
</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
# just the current directory name - not the full path | |
PathShort="\W"; | |
# round brackets surround the Git output | |
# I prefer them to square brackets - I couldn't tell you why ;-) | |
GIT_PROMPT_PREFIX="(" # start of the git info string | |
GIT_PROMPT_SUFFIX=")" # the end of the git info string | |
# change a couple of the colours to be inline with what I've configured in Git | |
GIT_PROMPT_CHANGED="${Green}✚ " # the number of changed files |
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
<template> | |
<ag-grid-vue class="ag-theme-fresh grid" | |
:gridOptions="gridOptions" | |
:rowData="rowData" | |
:rowClicked="onRowClicked" | |
:rowDataChanged="onRowDataChanged"> | |
</ag-grid-vue> | |
</template> | |
<script> | |
import Vue from "vue"; |
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
<template> | |
<ag-grid-vue class="ag-theme-fresh grid" | |
:gridOptions="gridOptions" | |
:rowData="rowData" | |
:rowClicked="onRowClicked" | |
:rowDataChanged="onRowDataChanged"> | |
</ag-grid-vue> | |
</template> | |
<script> | |
import Vue from "vue"; |