title: Angular-ElectronJS - Login API REST jwt tags:
- angular
- electronjs
- fontawesome categories:
- angular
- electronjs permalink: angular-electronjs-login-form-validation
| <app-root> | |
| <style> | |
| app-root { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| height: 100vh; | |
| color: pink; | |
| text-transform: uppercase; |
| <app-root>Loading...</app-root> |
| <title>Madatsara</title> |
| hexo.extend.tag.register('googleads', function(args) { | |
| if (args.length !== 3) { | |
| return ''; | |
| } | |
| let layout = args[0]; // ex: in-article | |
| let format = args[1]; // ex: fluid | |
| let slot = args[2]; |
title: Angular-ElectronJS - Login API REST jwt tags:
| <?php | |
| class PDO2 extends PDO { | |
| private static $_instance; | |
| /* Constructeur : héritage public obligatoire par héritage de PDO */ | |
| public function __construct( ) { | |
| } | |
| // End of PDO2::__construct() */ | |
| /* Singleton */ | |
| public static function getInstance() { |
| Download php 7.1 | |
| Extract zip and put all files in c:/xampp/php71 | |
| Update php_apcu.dll | |
| Update php_ssh2.dll | |
| Update c:\windows\php.ini - replace all occurence of C:\xampp\php to C:\xampp\php71 | |
| Edit C:\xampp\apache\conf\extra\httpd-xampp.conf - replace all occurence of C:\xampp\php to C:\xampp\php71 | |
| In C:\xampp\php71\php.ini - uncomment : | |
| - extension=php_curl.dll | |
| - extension=php_mbstring.dll | |
| - extension=php_mysqli.dll |
| /** | |
| * From: https://github.com/mikehaertl/php-shellcommand/blob/master/src/Command.php | |
| * @return bool whether we are on a Windows OS | |
| */ | |
| function getIsWindows() | |
| { | |
| return strncasecmp(PHP_OS, 'WIN', 3)===0; | |
| } |
| <?php | |
| /** | |
| * remove array_value by key and values | |
| * | |
| * @param array $arr - array | |
| * @param string $key - Key | |
| * @param string $lists - value lists | |
| * | |
| * @return array | |
| */ |