Based on Abdelrahman Omran PWA presentation, and Google PWA Codelab
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
// Install/upgrade amazon cli tools | |
pip install --upgrade --user awscli | |
// Check amazon cli installation | |
aws --version | |
// Uninstall amazon cli tools | |
pip uninstall awscli | |
// Check pip version |
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 | |
// Get single country | |
$egypt = country('eg'); | |
// Get country name // Get country native name | |
echo $egypt->getName(); echo $egypt->getNativeName(); | |
// Get country official name // Get country ISO 3166-1 alpha2 code | |
echo $egypt->getOfficialName(); echo $egypt->getIsoAlpha2(); |
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 | |
namespace App\Repositories; | |
use Rinvex\Repository\Repositories\EloquentRepository; | |
class UserRepository extends EloquentRepository | |
{ | |
protected $repositoryId = 'rinvex.repository.user'; |
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 | |
namespace App\Http\Controllers; | |
use App\Repositories\UserRepository; | |
class UsersController | |
{ | |
public function baz(UserRepository $users) | |
{ |
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 | |
namespace App\Repositories; | |
use Illuminate\Contracts\Container\Container; | |
use Rinvex\Repository\Repositories\EloquentRepository; | |
class UserRepository extends EloquentRepository | |
{ | |
public function __construct(Container $container) |
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 | |
interface RepositoryContract | |
{ | |
public function find($id, $columns = ['*'], $with = []); | |
public function findBy($attribute, $value, $columns = ['*'], $with = []); | |
public function findAll($columns = ['*'], $with = []); |
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
// Google Forms Slack Notification | |
// Andy Chase <github.com/andychase> | |
// License: CC0 1.0 Universal <creativecommons.org/publicdomain/zero/1.0> | |
// Install 1: This code goes in ( tools > script editor... ) of your google docs form | |
// Install 2: ( resources > current project triggers ) ( [onSubmit], [from Form], [On form submit] ) | |
// Setup 1: Put your slack api url below | |
var POST_URL = "https://hooks.slack.com/services/"; | |
function onSubmit(e) { |