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
# | |
# Dash app wrapper: show an app next to its code, | |
# for tutorials and presentations. | |
# | |
# Replace "todo" on the first line with your app, tweak the styles to taste. | |
# Then run this file as a dash app. | |
# | |
# Caveats: | |
# - Your app must be in a place you can import it from this script | |
# - In this version, your app must create an `app` variable, and |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
The MIT License (MIT) | |
Copyright (c) Plotly, Inc | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
/** | |
* inspired by is-number <https://github.com/jonschlinkert/is-number> | |
* but significantly simplified and sped up by ignoring number and string constructors | |
* ie these return false: | |
* new Number(1) | |
* new String('1') | |
*/ | |
'use strict'; |
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> | |
<meta charset="utf-8"> | |
<style> | |
.zoomlayer { | |
fill: transparent; | |
} | |
.land { | |
fill: rgb(83, 207, 142); | |
} | |
.graticule { |
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 shouldPass = [ | |
0xff, | |
5e3, | |
0, | |
-1.1, | |
37, | |
3.14, | |
1, | |
1.1, |