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
| { | |
| "config" : { | |
| "results_text" : "Your Superhero Wifi Name is:", | |
| "next_button_text" : "Next", | |
| "prev_button_text" : "Previous", | |
| "reset_button_text" : "Generate Another WiFi Name", | |
| "new_name_button_text" : "New Question", | |
| "thumbnail_size" : 150 | |
| }, | |
| "catchphrases" : [ |
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
| <!DOCTYPE html> | |
| <html ng-app="mainApp"> | |
| <head> | |
| <title>Todo Angular</title> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> | |
| </head> | |
| <body ng-controller="mainController" ng-init="getTodos()"> | |
| <div class="grid"> |
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
| // Requirement | |
| // Readline Sync Node package | |
| var readlineSync = require('readline-sync'); | |
| var name = readlineSync.question('Hey stranger, what is your name?: '); | |
| var enemies = ['White Walker', 'White Orc', 'Wild Dragon']; | |
| var wildAdventure = function() { | |
| var self = this; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body ng-app="myApp" ng-controller="mainController"> | |
| <h2>Player Handle</h2> | |
| <div ng-repeat="item in players"> |
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 isCaps = function(letter) { | |
| return letter === letter.toUpperCase(); | |
| }; | |
| var antiCaps = function(str) { | |
| if (!str && str.length <= 0) { | |
| console.log('Please use a string'); | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body ng-app="myApp" ng-controller="mainController"> | |
| <p>Add an item</p> |
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 readlineSync = require('readline-sync'); | |
| var name = readlineSync.question('Hey stranger, what is your name?: '); | |
| var wildAdventure = function() { | |
| var self = this; | |
| var enemies = ['White Walker', 'White Orc', 'Wild Dragon']; | |
| var enemy; | |
| var randomEnemy = function() { | |
| return Math.floor(Math.random() * ((enemies.length - 1) - 0 + 1)) + 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
| <!DOCTYPE html> | |
| <html ng-app="mainApp"> | |
| <head> | |
| <title>Angular Site</title> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> | |
| </head> | |
| <body> | |
| <section ng-controller="sumController"> | |
| <h2> {{ sumValue }} (Added Value) </h2> |
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 Dictionary = function() { | |
| var self = this; | |
| var words = [] | |
| this.acceptWord = true; | |
| this.addWord = function(word, def) { | |
| words.push({ | |
| reference: word.toLowerCase(), |
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 namesArray = ['angela', 'troy', 'ana', 'mark', 'amit', 'peter', 'john', 'gary', 'melissa', 'jacob']; | |
| var dontCall = function(name) { | |
| console.log('Not calling ' + name); | |
| }; | |
| var call = function(name) { | |
| console.log('Calling ' + name); | |
| }; |
NewerOlder