https://github.com/storybooks/storybook
https://github.com/reactjs/react-docgen
https://github.com/acdlite/recompose
# // Upgrade MAMP 3 to Mysql 5.7.12 (on El Capitan Tested) | |
#!/bin/sh | |
wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.12-osx10.11-x86_64.tar.gz | |
tar xfvz mysql-5.7.12-osx10.11-x86_64.tar.gz | |
echo "stopping mamp" | |
sudo /Applications/MAMP/bin/stop.sh | |
sudo killall httpd mysqld |
REST Api best practices 10 | |
- http://blog.mwaysolutions.com/2014/06/05/10-best-practices-for-better-restful-api/ | |
- http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api |
- https://help.github.com/articles/creating-an-issue-template-for-your-repository/ | |
- https://medium.com/@dave_lunny/sane-github-labels-c5d2e6004b63#.p4uj9vs26 | |
- https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ |
1) https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04 | |
2) https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-ubuntu-14-04 | |
3) install additional packages of php: sudo apt-get install php-mbstring php-zip php-xml | |
4) https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql |
<?php | |
interface Thing { | |
public function execute(); | |
} | |
class A implements Thing { | |
public function execute() |
# Caution: new repo should be empty otherwise you lose new repo data! | |
git clone --mirror <url_of_old_repo> | |
cd <name_of_old_repo.git> | |
git remote add new-origin <url_of_new_repo> | |
git push new-origin --mirror | |
# if you want merge two repositories you should use the following commands |
To send a request via the sandbox, you can use pm.sendRequest.
pm.test("Status code is 200", function () {
pm.sendRequest('https://postman-echo.com/get', function (err, res) {
pm.expect(err).to.not.be.ok;
pm.expect(res).to.have.property('code', 200);
pm.expect(res).to.have.property('status', 'OK');
});
});
<?php | |
namespace App\Http\Resources; | |
use Illuminate\Http\Resources\Json\ResourceCollection; | |
class BaseCollection extends ResourceCollection | |
{ | |
public function withResponse($request, $response) | |
{ |