Skip to content

Instantly share code, notes, and snippets.

View Omranic's full-sized avatar

Abdelrahman Omran Omranic

View GitHub Profile
@Omranic
Omranic / UserRepository.php
Last active July 14, 2016 03:38
Rinvex Repository is a simple, intuitive, and smart implementation of Active Repository with extremely flexible & granular caching system for Laravel, used to abstract the data layer, making applications more flexible to maintain. https://github.com/rinvex/repository
<?php
namespace App\Repositories;
use Illuminate\Contracts\Container\Container;
use Rinvex\Repository\Repositories\EloquentRepository;
class UserRepository extends EloquentRepository
{
public function __construct(Container $container)
@Omranic
Omranic / UserRepository.php
Last active October 26, 2016 13:57
Part of rinvex/repository implementation examples
<?php
namespace App\Repositories;
use Rinvex\Repository\Repositories\EloquentRepository;
class UserRepository extends EloquentRepository
{
protected $repositoryId = 'rinvex.repository.user';
@Omranic
Omranic / UsersController.php
Last active September 22, 2016 06:41
Rinvex Repository is a simple, intuitive, and smart implementation of Active Repository with extremely flexible & granular caching system for Laravel, used to abstract the data layer, making applications more flexible to maintain. https://github.com/rinvex/repository
<?php
namespace App\Http\Controllers;
use App\Repositories\UserRepository;
class UsersController
{
public function baz(UserRepository $users)
{
@Omranic
Omranic / pwa-fast-load.md
Last active May 22, 2020 14:06
1. Fast first load - Your First Progressive Web App
@Omranic
Omranic / pwa-serviceworker-appshell.md
Last active August 1, 2023 23:04
2. Use service workers to pre-cache the App Shell - Your First Progressive Web App
@Omranic
Omranic / pwa-serviceworker-data.md
Last active January 31, 2024 18:30
3. Use service workers to cache the forecast data - Your First Progressive Web App
@Omranic
Omranic / pwa-serviceworker-native-deploy.md
Last active October 27, 2016 19:22
4. Support native integration & Deploy online - Your First Progressive Web App
@Omranic
Omranic / rinvex.country.sample.php
Last active December 11, 2016 14:44
Code sample for rinvex/country package
<?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();
// 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
@Omranic
Omranic / index.ejs
Created March 1, 2017 18:09 — forked from ksrb/index.ejs
jquery.inputmask webpack configuration and package.json
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<input id="float"/>
</body>
</html>