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
| 'use strict'; | |
| (function($) { | |
| //toggle this between true and false to allow/disallow testing the app in the browser | |
| window.localApp = true; | |
| window.app = (function() { | |
| //this object will store methods and variables that will be accessible outside of the window.app module | |
| var pub = {}; |
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
| //convert the status id returned from openweathermap.org | |
| function convertWeatherID(id) { | |
| var returnWeather = ''; | |
| //check the ID | |
| switch(id) { | |
| //STORM | |
| case 200: | |
| case 201: | |
| case 210: |
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
| /*----------------------------------------------------------------------------------- | |
| Shuffle Example - build and shuffle a deck of cards | |
| This was built during a presentation for Girl Develop It! Charlotte's | |
| Beginner JavaScript class on Loops, Arrays, Objects, and Functions. | |
| It started as a hopefully simple example of how one could use arrays to do | |
| something programmatically and then got a little out of hand. |
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
| # Load the .bashrc configuration whenever .bash_profile (this file) is sourced | |
| if [ -f ~/.bashrc ]; then | |
| source ~/.bashrc | |
| fi |
OlderNewer