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
| module AutoExpand exposing (main) | |
| -- https://embed.ellie-app.com/Gnv9Bznh4na1/0 | |
| import Html exposing (Html, div, p, br, textarea, text) | |
| import Html.Attributes exposing (rows, style) | |
| import Html.Events exposing (onInput, on) | |
| import Json.Decode exposing (Decoder, field, at, map2, int, string) | |
| type alias Model = |
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
| ## | |
| # You should look at the following URL's in order to grasp a solid understanding | |
| # of Nginx configuration files in order to fully unleash the power of Nginx. | |
| # http://wiki.nginx.org/Pitfalls | |
| # http://wiki.nginx.org/QuickStart | |
| # http://wiki.nginx.org/Configuration | |
| # | |
| # Generally, you will want to move this file somewhere, and start with a clean | |
| # file but keep this around for reference. Or just disable in sites-enabled. | |
| # |
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
| { | |
| "name": "javascript-development-environment", | |
| "version": "1.0.0", | |
| "description": "JavaScript development environment Pluralsight course by Cory House", | |
| "scripts": { | |
| }, | |
| "author": "Cory House", | |
| "license": "MIT", | |
| "dependencies": { | |
| "whatwg-fetch": "1.0.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
| import datetime | |
| fmt = '%Y%m%d%H%M%S' # ex. 20110104172008 -> Jan. 04, 2011 5:20:08pm | |
| now_str = datetime.datetime.now().strftime(fmt) | |
| now_datetime = datetime.datetime.strptime(now_str, fmt) |
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 datetime | |
| fmt = '%Y%m%d%H%M%S' # ex. 20110104172008 -> Jan. 04, 2011 5:20:08pm | |
| now_str = datetime.datetime.now().strftime(fmt) | |
| now_datetime = datetime.datetime.strptime(now_str, fmt) |
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 uuid import UUID | |
| def validate_uuid4(uuid_string): | |
| """ | |
| Validate that a UUID string is in | |
| fact a valid uuid4. | |
| Happily, the uuid module does the actual | |
| checking for us. |