<?php
// Positional arguments.
$pieces = explode('-', 'piece1-piece2-piece3');
// Named arguments.
$pieces = explode(delimiter: '-', string: 'piece1-piece2-piece3');
// or
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | age | gender | country | |||
|---|---|---|---|---|---|---|
| 0 | Mr Jerome Thomas | 73 | male | United States | jerome.thomas@example.com | |
| 1 | Mr Gary Berry | 70 | male | United Kingdom | gary.berry@example.com | |
| 2 | Mr Noham Dubois | 40 | male | France | noham.dubois@example.com | |
| 3 | Mrs Naja Johansen | 63 | female | Denmark | naja.johansen@example.com | |
| 4 | Mr Damien Marchand | 61 | male | France | damien.marchand@example.com | |
| 5 | Mr Harri Althoff | 56 | male | Germany | harri.althoff@example.com | |
| 6 | Mr Noah Olsen | 40 | male | Denmark | noah.olsen@example.com | |
| 7 | Ms Britta Weinert | 35 | female | Germany | britta.weinert@example.com | |
| 8 | Mr Jakob Russell | 44 | male | Ireland | jakob.russell@example.com |
This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).
This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)
- Installing Homebrew is effortless, open Terminal and enter :
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
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
| #!/bin/bash | |
| # Creator: Phil Cook | |
| # Modified: Andy Miller | |
| # | |
| # >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh | |
| # >>> Kept here for legacy purposes | |
| # | |
| osx_major_version=$(sw_vers -productVersion | cut -d. -f1) | |
| osx_minor_version=$(sw_vers -productVersion | cut -d. -f2) | |
| osx_patch_version=$(sw_vers -productVersion | cut -d. -f3) |
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
| a4b.amazonaws.com | |
| access-analyzer.amazonaws.com | |
| account.amazonaws.com | |
| acm-pca.amazonaws.com | |
| acm.amazonaws.com | |
| airflow-env.amazonaws.com | |
| airflow.amazonaws.com | |
| alexa-appkit.amazon.com | |
| alexa-connectedhome.amazon.com | |
| amazonmq.amazonaws.com |
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
| <?php | |
| define('BCN_URL', 'http://www.bcn.gob.ni/estadisticas/mercados_cambiarios/tipo_cambio/cordoba_dolar/mes.php'); | |
| function getCambioMes( $mes, $anio ) { | |
| if( strlen((int)$mes) == 1 ) | |
| $mes = '0'.$mes; | |
| preg_match_all('|<td><div align="center">(.*?)\-(.*?)</div></td>\s*<td><div align="center">(.*?)</div></td>|is', | |
| file_get_contents(BCN_URL.'?mes='.$mes.'&anio='.$anio), $matches); | |
| $ret = array(); |
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
| #!/usr/bin/env bash | |
| # fork from https://gist.github.com/jakemhiller/d342ad51505addf78ec628a16fd3280f | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" | |
| } | |
| check_run package.json "npm prune && npm install" |
#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.
Run the following commands in sequence.
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
NewerOlder