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
| /** | |
| * Create a linearly spaced array | |
| * | |
| * @param {number} start - starting integer | |
| * @param {number} nvalues - how many values | |
| * @param {number} interval - interval (optional) | |
| */ | |
| function __linspace(start, nvalues, interval) { | |
| if (typeof interval === "undefined") { interval = 0; } | |
| var i; |
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
| .on("mouseover", function (d) { | |
| // Call Bootstrap tooltip, this is one of the few jQuery dependencies | |
| $(this).tooltip({ | |
| "title": "Tooltip text or function call", | |
| "placement": "right", | |
| "html": true, | |
| "container": "body" | |
| }).tooltip("show"); | |
| }); |
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 Excel = React.createClass({ | |
| displayName: 'Excel', | |
| __preSearchData: null, | |
| _log: [], | |
| propTypes: { | |
| headers: React.PropTypes.arrayOf( | |
| React.PropTypes.string | |
| ), | |
| initialData: React.PropTypes.arrayOf( |
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
| # encoding: utf-8 | |
| """ | |
| TESTING SCRIPT for Time Rate of Change - QC Flag Test | |
| """ | |
| def assert_(statement, result, caption='*'): | |
| """ | |
| Simple assertion test | |
| """ |
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> | |
| <!-- | |
| Photo Viewer | |
| View all images in a directory by clicking buttons. | |
| This allows you to stay on the same page rather than clicking the back button every time you want to see a different image. | |
| Image name can not have any spaces!! | |
| Created by Brian Blaylock | |
| Date: November 30, 2015 | |
| Updated with bootstrap style: February 10, 2017 | |
| http://home.chpc.utah.edu/~u0553130/Brian_Blaylock/home.html |
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
| <html> | |
| <body> | |
| <h2>Simple Latest Example</h2> | |
| <p>See the console for the full data response.</p> | |
| <hr/> | |
| <div id="result"></div> | |
| </body> | |
| <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
| <html> | |
| <head> | |
| <title>Scrolling Weather Ticker</title> | |
| <style> | |
| @-webkit-keyframes ticker { | |
| 0% { | |
| -webkit-transform: translate3d(0, 0, 0); | |
| transform: translate3d(0, 0, 0); | |
| visibility: visible; |
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
| from urllib import urlencode | |
| from urllib2 import Request, urlopen, URLError, HTTPError | |
| import json | |
| def fetch_data(service, parameters={}, debug=False): | |
| '''Calls the Mesonet API service and returns data as a dictionary''' | |
| baseurl = 'https://api.mesowest.net/v2/' | |
| _parameters = urlencode(parameters) | |
| payload = None # Set default to None, so you can catch errors later |
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
| <html> | |
| <head> | |
| <style> | |
| h1 { | |
| text-align: center; | |
| } | |
| .container { | |
| padding: 0 5em 5em 5em; |
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
| <html> | |
| <head> | |
| <style> | |
| ul { | |
| list-style: none; | |
| } | |
| label { | |
| margin-right: 1em; |