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
| vue init webpack vue-todo |
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> | |
| <div class="goalItem"> | |
| <div> | |
| {{goal.name}} | |
| </div> | |
| <slot></slot> | |
| </div> | |
| </template> | |
| <script> |
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 java.util.Scanner; | |
| /** | |
| * | |
| * @author Anthony | |
| */ | |
| public class JavaApplication3 { | |
| /** | |
| * @param args the command line arguments |
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 redis | |
| def my_handler(message): | |
| print 'MY HANDLER: ', message | |
| r = redis.StrictRedis(host='localhost', port=6379, db=0); | |
| p = r.pubsub() | |
| p.subscribe(**{'globalInput:machine': my_handler}) |
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
| <form id="quote-gen" style="text-align: center; font-size: 1.2em; background: #e9e9e9; box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.2); padding: 2em"> | |
| <h1 style="text-align: center"> Get a quote now! </h1> | |
| <label>How many panels do you have?</label> | |
| <input type="number" name="panel-count" min="1" max="71"><br> | |
| <br><label>What type of structure are your solar panels installed on?</label> <br> | |
| <div style="text-align: left; display: inline-block; width: 30em"> | |
| <input type="radio" name="structure" value="home" id="home-panels"> Home Roof Top<br> | |
| <input type="radio" name="structure" value="commercial"> Commercial Building Roof Top<br> | |
| <input type="radio" name="structure" value="packing-covers"> Packing Covers<br> |
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
| jQuery('#quote-gen').on('change', function(e){ | |
| var number = jQuery('input[name="panel-count"]').val(); | |
| var structure = jQuery('input[name="structure"]:checked').val(); | |
| var level = jQuery('input[name="level"]:checked').val(); | |
| var water = jQuery('input[name="water"]:checked').val(); | |
| var frequency = jQuery('input[name="frequency"]:checked').val(); | |
| var referrer = jQuery('input[name="referrer"]').val(); | |
| var details = jQuery('input[name="additional-details"]').val(); |
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 client = new net.Socket(); | |
| client.connect(43, 'whois.iana.org', function(){ | |
| console.log('connected'); | |
| client.write('COM'); | |
| }); | |
| client.on('data', function(data){ | |
| console.log('Got:' + data); | |
| client.destroy(); | |
| }); |
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
| REST API An back-end written in Express | |
| Approximate Models to be made in MongoDB | |
| User | |
| username | |
| password (hashed with bcrypt) | |
| friend list (array of other user IDs) | |
| album list (array of albums) |
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
| Error: [$rootScope:inprog] http://errors.angularjs.org/1.3.15/$rootScope/inprog?p0=%24digest | |
| at Error (native) | |
| at https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js:6:417 | |
| at p (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js:118:370) | |
| at n.$get.n.$apply (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js:126:224) | |
| at HTMLDivElement.updateTitleScroll (http://localhost:3000/js/index.js:74:14) | |
| at HTMLDivElement.x.event.dispatch (https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:5:10006) | |
| at HTMLDivElement.x.event.add.y.handle (https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js:5:6789) | |
| at https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js:67:323 | |
| at https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js:89:326 |
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
| 17.Request.create @ socket.io-1.3.5.js:2 | |
| Request @ socket.io-1.3.5.js:2 | |
| 17.XHR.request @ socket.io-1.3.5.js:2 | |
| 17.XHR.doPoll @ socket.io-1.3.5.js:2 | |
| 18.Polling.poll @ socket.io-1.3.5.js:2 | |
| 18.Polling.doOpen @ socket.io-1.3.5.js:2 | |
| 14.Transport.open @ socket.io-1.3.5.js:1 | |
| 13.Socket.open @ socket.io-1.3.5.js:1 | |
| Socket @ socket.io-1.3.5.js:1 | |
| Socket @ socket.io-1.3.5.js:1 |