- Download the perforce visual tool suite from here: http://www.perforce.com/perforce/downloads/index.html
- Copy only the p4merge.app file into your /Applications/ directory
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
| // Welcome! require() some modules from npm (like you were using browserify) | |
| // and then hit Run Code to run your code on the right side. | |
| // Modules get downloaded from browserify-cdn and bundled in your browser. | |
| axios = require('axios') | |
| myAxios = axios.create() | |
| // Response 2 |
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
| var getC = function(bData){ | |
| var d = new $.Deferred(); | |
| var cData = {id: bData.id + "+id_c"}; | |
| console.log("getC"); | |
| d.resolve(cData); | |
| return d.promise(); | |
| }; | |
| var getB = function(aData){ | |
| var d = new $.Deferred(); |
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
| var getCData = function(){ | |
| var deferred = new $.Deferred(); | |
| getA() | |
| .then(function(aData){ | |
| getB(aData) | |
| .then(function(bData){ | |
| getC(bData) | |
| .then(function(cData){ | |
| deferred.resolve(cData); | |
| }, function(error_c){ |
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
| var getCData = function(){ | |
| return getA() | |
| .then(getB) | |
| .then(getC) | |
| .fail(error); | |
| }; |
A curated list by Eric Elliott and friends. Suggest links in the comments below.
This is a very exclusive collection of only must-have JavaScript links. I'm only listing my favorite links. Nothing else makes the cut. Feel free to suggest links if you think they're good enough to make this list. The really curious should feel free to browse the comments to find other links. I can't guarantee the quality of links in the comments.
Some of these links are affiliate links, meaning that if you make a purchase, I might earn a little money. This has absolutely no bearing on whether or not links make the list. None, whatsoever. However, it does allow me more resources to fight poverty with code. Every little bit counts.
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
| <script src="main.min.55a94a50.js"></script> | |
| <link rel="stylesheet" href="main.min.6e4ea0cc.css"></head> |
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
| hashres: { | |
| options: { | |
| // Optional. Encoding used to read/write files. Default value 'utf8' | |
| encoding: 'utf8', | |
| // Optional. Format used to name the files specified in 'files' property. | |
| // Default value: '${hash}.${name}.cache.${ext}' | |
| fileNameFormat: '${name}.${hash}.${ext}', | |
| // Optional. Should files be renamed or only alter the references to the files | |
| // Use it with '${name}.${ext}?${hash} to get perfect caching without renaming your files | |
| // Default value: 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
| npm install grunt-hashres |
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
| angular.module('app.templates', []).run(['$templateCache', function($templateCache) { | |
| $templateCache.put("app.templates", | |
| "<script type=text/ng-template id=timerTemplate.html><div class=\"timer\">{{timer.time}}</div></script><script type =text/ng-template id=videoTemplate.html><video id=\"video\" class=\"video-full-screen\" controls=\"true\">\n" + | |
| " <source id=\"mp4\" ng-src=\"{{ videoDataUrlMp4 }}\" type=\"video/mp4\">\n" + | |
| " <p>Your user agent does not support the HTML5 Video element.</p>\n" + | |
| " </video></script><script type=text/ng-template id=videoPageTemplate.html><div>\n" + | |
| " <demo-timer></demo-timer>\n" + | |
| " <demo-video video-data=\"videoPageCtrl.videoData\"><demo-video>\n" + | |
| " </div></script>"); | |
| }]); |
NewerOlder