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
#!/bin/sh | |
# Install drupal/coder | |
composer global require drupal/coder | |
# Register Drupal and DrupalPractice Standard with PHPCS | |
phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_sniffer | |
# Colorise output | |
phpcs --config-set colors 1 | |
# Go home | |
cd ~ |
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
diff --git a/.platform/local/project.yaml b/.platform/local/project.yaml | |
index d76c7c6..6736607 100644 | |
--- a/.platform/local/project.yaml | |
+++ b/.platform/local/project.yaml | |
@@ -1,2 +1,3 @@ | |
id: 4a3nbi2oz2kuo | |
host: bc.platform.sh | |
+alias-group: ro | |
diff --git a/.platform/routes.yaml b/.platform/routes.yaml | |
index 684bda4..c6746a6 100644 |
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 from 'react'; | |
import { compose, withProps, withHandlers } from "recompose"; | |
import { withScriptjs, withGoogleMap, GoogleMap, Marker } from "react-google-maps"; | |
import { MarkerClusterer } from "react-google-maps/lib/components/addons/MarkerClusterer"; | |
import axios from 'axios'; | |
const MapWithAMarkerClusterer = compose( | |
withProps({ | |
googleMapURL: "https://maps.googleapis.com/maps/api/js?key=AIzaSyC4R6AN7SmujjPUIGKdyao2Kqitzr1kiRg&v=3.exp&libraries=geometry,drawing,places", | |
loadingElement: <div style={{ height: `100%` }} />, |
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
[{ | |
"ISO_3166alpha2": "AD", | |
"ISO_3166alpha3": "AND", | |
"ISO_3166numeric": "020", | |
"fips": "AN", | |
"Country": "Andorra", | |
"Capital": "Andorra la Vella", | |
"Area": "468.0", | |
"Population": "84,000", | |
"Continent": "EU", |
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
#!/bin/bash | |
# Disclaimer - make backups, use at your own risk. | |
# | |
# Based on this comment: http://stackoverflow.com/a/13944924/843067 | |
# Views and stored procedures have to be done separately. | |
OLDDB="thunder" | |
NEWDB="phpedu" | |
MYSQL="mysql -u root -p " |
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
#!/usr/bin/env sh | |
# checks to see if running | |
launchctl list | grep mongo | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
launchctl remove homebrew.mxcl.mongodb | |
pkill -f mongod |
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 | |
$tids = \Drupal::entityQuery('taxonomy_term') | |
->condition('vid', 'VOCABULARY_ID') | |
->execute(); | |
$controller = \Drupal::entityTypeManager()->getStorage('taxonomy_term'); | |
$entities = $controller->loadMultiple($tids); | |
$controller->delete($entities); |
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
#!/bin/bash | |
curl -OL https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar | |
chmod +x drush.phar | |
sudo mv drush.phar /usr/local/bin/drush |
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
en: | |
religious: | |
- :name: Christian | |
:id: en.christian#[email protected] | |
- :name: Islamic | |
:id: en.islamic#[email protected] | |
- :name: Jewish | |
:id: en.jewish#[email protected] | |
national: | |
- :name: Australian |
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 | |
/** | |
* Portable UTF-8 | |
* Lightweight Library for Unicode Handling in PHP | |
* @details http://pageconfig.com/post/portable-utf8 | |
* @demo http://pageconfig.com/post/portable-utf-8-demo | |
* | |
* @version 1.3 |
OlderNewer