Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| #!/usr/bin/env python3 | |
| # Demonstrates the use of Python to work with Cognito. | |
| # Create a new a user, log in, check tokens and call an API. | |
| # The purpose was to learn about Cognito. Security has been | |
| # circumvented in the interest of keeping it simple. | |
| # Notably, the authentication procedure uses the most insecure | |
| # method. This code is not intended for use in production. | |
| # | |
| # https://www.neant.ro/aws/working-with-cognito-and-api-gateway-in-python.html |
| <!-- Example #1 - no styling --> | |
| Made with ❤ in Switzerland | |
| Made with ♥ in Switzerland | |
| Made with ♡ in Switzerland | |
| Made with ❤️ in Switzerland | |
| Made with ♥️ in Switzerland | |
| <!-- Example #2 - inline-styled ❤ --> | |
| Made with <span style="color: #e25555;">♥</span> in Switzerland | |
| Made with <span style="color: #e25555;">♥</span> in Switzerland |
| ## Global install of the app generator | |
| npm install -g create-react-app | |
| ## Setup the app (first-time only) | |
| create-react-app my-app | |
| cd my-app | |
| git init | |
| # Create the Heroku app; requires free account at https://www.heroku.com/ | |
| heroku create -b https://github.com/heroku/heroku-buildpack-static.git |
| import { Pipe, PipeTransform, Injectable } from '@angular/core'; | |
| /** | |
| * | |
| * <input [(model)]="query" type="text" /> | |
| * <ul> | |
| * <li *ngFor="let hero of heroes | search:query" >{{hero.name}}</li> | |
| * </ul> | |
| */ |
| @@ -558,13 +567,13 @@ | |
| .core (@gridColumnWidth, @gridGutterWidth) { | |
| .spanX (@index) when (@index > 0) { | |
| - (~".span@{index}") { .span(@index); } | |
| + .span@{index} { .span(@index); } | |
| .spanX(@index - 1); | |
| } | |
| .spanX (0) {} | |
| <?php | |
| /* From https://www.usps.com/send/official-abbreviations.htm */ | |
| $us_state_abbrevs_names = array( | |
| 'AL'=>'ALABAMA', | |
| 'AK'=>'ALASKA', | |
| 'AS'=>'AMERICAN SAMOA', | |
| 'AZ'=>'ARIZONA', | |
| 'AR'=>'ARKANSAS', |
| <?php | |
| $countries = array | |
| ( | |
| 'AF' => 'Afghanistan', | |
| 'AX' => 'Aland Islands', | |
| 'AL' => 'Albania', | |
| 'DZ' => 'Algeria', | |
| 'AS' => 'American Samoa', | |
| 'AD' => 'Andorra', |