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
-- generate password in cli | |
-- openssl rand -base64 16 | |
create database dbname; | |
create user 'username'@'localhost' identified by 'password'; | |
grant all privileges on dbname.* to 'username'@'localhost'; | |
flush privileges; |
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
# http://stackoverflow.com/questions/29516239 | |
$all_characters = implode('', $person_array); | |
$unique_characters = []; | |
foreach($all_characters as $char) { | |
if(!in_array($char, $unique_characters)) { | |
$unique_characters[] = $char; | |
} | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body ng-app="fApp"> | |
<div ng-controller="FlickController"> |