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
| <div id="counter"> | |
| <button @click="up()">+</button> | |
| <p id="count">{{ value }}</p> | |
| <button @click="down()">-</button> | |
| </div> | |
| <script> | |
| var counter = new Vue({ | |
| el: '#counter', | |
| data: { | |
| value: 0 |
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
Show hidden characters
| { | |
| "env": { | |
| "node": true, | |
| "es6": true | |
| }, | |
| "ecmaFeatures": { | |
| "arrowFunctions": true, | |
| "blockBindings": true, | |
| "classes": true, | |
| "defaultParameters": true, |
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 Server = require('./server.js'); | |
| const webpack = require('webpack'); | |
| let config; | |
| const port = (process.env.PORT || 8080); | |
| const app = Server.app(); | |
| if (process.env.NODE_ENV === 'development') { | |
| const webpackDevMiddleware = require('webpack-dev-middleware'); | |
| const webpackHotMiddleware = require('webpack-hot-middleware'); |
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
| // AVLTree /////////////////////////////////////////////////////////////////// | |
| // This file is originally from the Concentré XML project (version 0.2.1) | |
| // Licensed under GPL and LGPL | |
| // | |
| // Modified by Jeremy Stephens. | |
| // Pass in the attribute you want to use for comparing | |
| function AVLTree(n, attr) { | |
| this.init(n, attr); | |
| } |
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
| // creates a promise object which will either resolve or reject | |
| const Promise = function (executor) { | |
| const _thens = []; | |
| let _catch; | |
| const promise = { | |
| then: cb => { | |
| _thens.push(cb); | |
| return promise; | |
| }, |
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
| // creates a promise object which will either resolve or reject | |
| const Promise = function (executor) { | |
| const _thens = []; | |
| let _catch; | |
| const promise = { | |
| then: cb => { | |
| _thens.push(cb); | |
| return promise; | |
| }, |
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
| // by Gina Lawrence | |
| you been fighting | |
| scheming, plotting / steady moving | |
| finding a place | |
| here or there / | |
| don't much matter | |
| cause they wont want ya anyway | |
| not then | |
| not now | |
| not / really |
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 fakeAjax(url,cb) { | |
| var fake_responses = { | |
| "file1": "The first text", | |
| "file2": "The middle text", | |
| "file3": "The last text" | |
| }; | |
| var randomDelay = (Math.round(Math.random() * 1E4) % 8000) + 1000; | |
| console.log("Requesting: " + url); |
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
| /* | |
| You have a defined set of activities you can be doing during your job search | |
| process. Each activity has a cost (time that it takes you to complete the activity) | |
| and each activity provides some value (XP, or experience points, that will increase your chances of finding a job). | |
| Write a function that maximizes XP for a given input of time. Try to make your | |
| solution as efficient as possible. | |
| */ | |
| const ACTIVITIES = [ |
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 ACTIVITIES = [ | |
| {name: 'side-project', time: 10, xp: 12}, | |
| {name: 'algorithms', time: 3, xp: 7}, | |
| {name: 'networking', time: 1, xp: 0.5}, | |
| {name: 'exercise', time: 2, xp: 1.5}, | |
| {name: 'systems design', time: 4, xp: 4}, | |
| {name: 'making CSS codepens', time: 3, xp: 4} | |
| ]; | |
| /** |