Debug Modern JavaScript with VSCode. Part of VSCode Course.
npm init -yDebug Modern JavaScript with VSCode. Part of VSCode Course.
npm init -y| ### News Aggregators | |
| 127.0.0.1 redditate.com | |
| 127.0.0.1 news.google.com | |
| 127.0.0.1 news.yahoo.com | |
| 127.0.0.1 news.ycombinator.com | |
| ### News | |
| 127.0.0.1 cnn.com | |
| 127.0.0.1 recode.net | |
| 127.0.0.1 techcrunch.com | |
| 127.0.0.1 mashable.com |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r68/three.min.js" | |
| ></script> | |
| <script src="https://rawgit.com/mrdoob/three.js/master/examples/js/controls/Trac | |
| kballControls.js" | |
| ></script> | |
| <script src="spiral.js"></script> |
| export default Ember.ArrayProxy.extend({ | |
| localStorageKey: null, | |
| init: function() { | |
| var localStorageKey = this.get('localStorageKey'); | |
| if (!localStorageKey) { | |
| throw new Error("You must specify which property name should be used to save " + this + " in localStorage by setting its localStorageKey property."); | |
| } |
| config = require '../config' | |
| config.setEnvironment 'development' | |
| fs = require 'fs' | |
| path = require 'path' | |
| colors = require 'colors' | |
| github = require 'octonode' | |
| client = github.client | |
| id : config.GITHUB_CLIENT_ID |
| var fs = require('fs'); | |
| function parseIntelHexData(path, callback) { | |
| var hex = fs.readFileSync(path).toString(); | |
| console.log('loaded file'); | |
| // Split the file into lines | |
| var hexLines = hex.split('\n'); | |
| // The last line is an empty string | |
| hexLines.pop(); |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| <!-- | |
| This code is a working example of the code shown in the 12devs[0]'s article: | |
| "Rapid Prototyping with AngularJS"[1] by Tom Ashworth[2]. | |
| I put it here for reference ;-) | |
| [0] http://12devs.co.uk | |
| [1] http://12devs.co.uk/articles/rapid-prototyping-with-angularjs/ | |
| [2] http://twitter.com/phuunet |
| /* | |
| In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
| server, but for some reason omit a client connecting to it. I added an | |
| example at the bottom. | |
| Save the following server in example.js: | |
| */ | |
| var net = require('net'); |
| // Intercepting HTTP calls with AngularJS. | |
| angular.module('MyApp', []) | |
| .config(function ($provide, $httpProvider) { | |
| // Intercept http calls. | |
| $provide.factory('MyHttpInterceptor', function ($q) { | |
| return { | |
| // On request success | |
| request: function (config) { | |
| // console.log(config); // Contains the data about the request before it is sent. |