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
| <p class=MsoNormal style='margin-top:14.0pt;margin-right:0in;margin-bottom: | |
| 0in;margin-left:.5in;margin-bottom:.0001pt;text-indent:-.25in;mso-list:l0 level1 lfo1'> | |
| <![if !supportLists]><span | |
| lang=EN style='font-size:13.5pt;line-height:115%;font-family:Roboto;mso-fareast-font-family: | |
| Roboto;mso-bidi-font-family:Roboto;color:#001F3F'><span style='mso-list:Ignore'>●<span | |
| style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span | |
| lang=EN style='font-size:13.5pt;line-height:115%;font-family:Roboto;mso-fareast-font-family: | |
| Roboto;mso-bidi-font-family:Roboto;color:#001F3F'>An intuitive, customizable | |
| user interface.</span> | |
| <span lang=EN> |
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; | |
| import java.util.Random; | |
| import java.lang.Math; | |
| public class nimbackup { | |
| public static void main(String[] args) { | |
| Scanner input = new Scanner(System.in); | |
| int userchoice; | |
| //so this thing is about to introduce itself |
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
| /** | |
| * Retrieves a nested object value without triggering an | |
| * NPE if one of the keys is undefined and if an NPE is encountered will return | |
| * a default value if one is passed in | |
| * | |
| * @param {Object.<*>} obj Object literal trying to crawl | |
| * @param {string} path Path to property you are trying to retrieve | |
| * represented as a string with dot notation | |
| * @param {*=} defaultValue Whatever you want returned if the lookup | |
| * fails |
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
| /** | |
| * @file A simple Singleton Implementation of the observer pattern to facilitate | |
| * global communication of app events between app modules while maintaining decoupled | |
| * and encapsulated modules | |
| * | |
| * @example | |
| * var ObjectA, | |
| * ObjectB; | |
| * | |
| * ObjectA.pubSub = PubSub.getInstance(); |
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
| // let's do some event delegation here as we could have hundreds of links and want to mitigate the number of event handlers | |
| // using underscore bind to avoid using "self = this" | |
| $('#formLinksContainer').on('click', '.formLink', _.bind(function(evt) { | |
| evt.preventDefault(); | |
| var $link = $(evt.target), | |
| position = $link.data('position'), | |
| $prev = $(".prev"), | |
| $next = $(".next"), | |
| appState = this.getApplicationState(position); | |
| // set disabled 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
| getApplicationState: function(position) { | |
| return this.applicationState[position]; | |
| } |
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
| /** | |
| * We have 3 states for which our page can be in: | |
| * 1. First page of form | |
| * 2. In-Between first and last pages of form | |
| * 3. Last page of form | |
| * Based on these page states, the form previous and next | |
| * buttons become enabled or disabled | |
| */ | |
| applicationState: { | |
| first: { |