This file contains 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 React, { useState } from "react"; | |
import { | |
IonApp, | |
IonPage, | |
IonHeader, | |
IonContent, | |
IonItem, | |
IonLabel, | |
IonInput, | |
IonRadioGroup, |
This file contains 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: some-site | |
recipe: pantheon | |
config: | |
framework: drupal8 | |
env: dev | |
site: some-site | |
id: some-uuid-string-here | |
drush: 8.3 | |
php: '7.3' | |
webroot: web |
This file contains 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
/** | |
* Encryption class for encrypt/decrypt that works between programming languages. | |
* | |
* @author Vee Winch. | |
* @link https://stackoverflow.com/questions/41222162/encrypt-in-php-openssl-and-decrypt-in-javascript-cryptojs Reference. | |
* @link https://github.com/brix/crypto-js/releases crypto-js.js can be download from here. | |
*/ | |
class Encryption { |
This file contains 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
<?php | |
/** | |
* Implements hook_form_alter(). | |
*/ | |
function MODULE_form_user_login_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state) { | |
// Allow login with email. | |
array_unshift($form['#validate'], 'MODULE_user_login_form_validate'); | |
// Change the field label. | |
$form['name']['#title'] = new \Drupal\Core\StringTranslation\TranslatableMarkup('Email or Username'); |
This file contains 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
# Platform: OS X | |
# | |
# Role: pull last repository changes, then build and run on a connected iOS device | |
# | |
# Usage: ./buildandrun-ios.sh [version] [--run-only] | |
# | |
# Parameters: | |
# version version number (e.g. "v0.2", "v4rc3", etc.) for your Unity build name | |
# --run-only set this if the Unity project was already build and you don't want to rebuild it | |
# |