Skip to content

Instantly share code, notes, and snippets.

View ansezz's full-sized avatar
🚀
Trying hard to stay up to date.

ANASS EZ-ZOUAINE ansezz

🚀
Trying hard to stay up to date.
View GitHub Profile
@ksafranski
ksafranski / Common-Currency.json
Last active June 12, 2024 16:45
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@cybercussion
cybercussion / gist:4675334
Last active May 17, 2023 16:06
This is a more full sample of a SCORM 2004 Learner Attempt with objectives, interactions, comments etc ...
{
"cmi": {
"_version": "1.0",
"comments_from_learner": {
"_children": "comment,location,timestamp",
"_count": "8",
"0": {
"comment": "This is a comment from learner",
"location": "QUnit Test",
"timestamp": "2013-01-28T15:04:39.1-08:00"
@BFTrick
BFTrick / woocommerce-check-terms.php
Last active February 12, 2024 12:02
Make the WooCommerce Terms & Conditions checkbox checked by default
<?php
/**
* Plugin Name: WooCommerce Check Terms & Conditions
* Plugin URI: https://gist.github.com/BFTrick/7789974
* Description: Make the Terms & Conditions checkbox checked by default
* Author: Patrick Rauland
* Author URI: http://patrickrauland.com/
* Version: 1.0
*
* This program is free software: you can redistribute it and/or modify
@msurguy
msurguy / List.md
Last active April 30, 2024 15:14
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@hackel
hackel / SentryAuthAdapter.php
Last active June 24, 2021 14:48
SentryAuthAdapter for using Tymon\JWTAuth with Cartalyst\Sentry
<?php namespace MyApp\Providers;
use Exception;
use Cartalyst\Sentry\Sentry;
use Cartalyst\Sentry\Users\UserInterface;
use Tymon\JWTAuth\Providers\Auth\AuthInterface;
class SentryAuthAdapter implements AuthInterface
{
/**
@javisperez
javisperez / interceptors.js
Last active December 4, 2022 16:47
Axios interceptor for cache with js-cache
// Usually I use this in my app's config file, in case I need to disable all cache from the app
// Cache is from `js-cache`, something like `import Cache from 'js-cache';`
const cacheable = true,
cache = new Cache();
// On request, return the cached version, if any
axios.interceptors.request.use(request => {
// Only cache GET requests
if (request.method === 'get' && cacheable) {
@ansezz
ansezz / laravel-clear.sh
Created February 19, 2018 11:50
Clear Laravel Application
#!/usr/bin/env bash
echo '*** Clear Laravel Application ***'
echo '** Remove the compiled class file **'
php artisan clear-compiled
echo '** Flush expired password reset tokens **'
php artisan auth:clear-resets
@ansezz
ansezz / Common-Currency.json
Last active February 28, 2018 15:15 — forked from ksafranski/Common-Currency.json
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@xeebeast
xeebeast / GoogleStorageAdapter.php
Created December 17, 2018 11:12
Google Storage Adapter File to add GCS service to Lumen Project
<?php
namespace App\Adapters;
use Google\Cloud\Core\Exception\NotFoundException;
use Google\Cloud\Storage\Acl;
use Google\Cloud\Storage\Bucket;
use Google\Cloud\Storage\StorageClient;
use Google\Cloud\Storage\StorageObject;
use GuzzleHttp\Psr7\StreamWrapper;
use League\Flysystem\Adapter\AbstractAdapter;
use League\Flysystem\AdapterInterface;
@xeebeast
xeebeast / GoogleCloudStorageServiceProvider.php
Created December 17, 2018 11:15
Google Cloud Storage Service Provier File For Lumen Projects
<?php
namespace App\Providers;
use Google\Cloud\Storage\StorageClient;
use Illuminate\Filesystem\FilesystemManager;
use Illuminate\Support\ServiceProvider;
use League\Flysystem\Filesystem;
use App\Adapters\GoogleStorageAdapter;
class GoogleCloudStorageServiceProvider extends ServiceProvider
{
/**