Skip to content

Instantly share code, notes, and snippets.

View masterix21's full-sized avatar
❤️
Ready to help

Luca Longo masterix21

❤️
Ready to help
View GitHub Profile
@masterix21
masterix21 / init-github-on-existing-laravel-project.md
Last active April 16, 2021 20:09
Initialize GitHub (or any git remote repository) within an already existent (Laravel?) project

1. Create a new fresh and empty GitHub repository

https://github.com/new

2. Create a new Laravel project (if not exists yet)

laravel new project-name --jet
cd ./project-name

3. Initialize a git repository

@DawidMyslak
DawidMyslak / vue.md
Last active April 22, 2024 12:49
Vue.js and Vuex - best practices for managing your state

Vue.js and Vuex - best practices for managing your state

Modifying state object

Example

If you have to extend an existing object with additional property, always prefer Vue.set() over Object.assign() (or spread operator).

Example below explains implications for different implementations.

@jgrossi
jgrossi / AttachJwtToken.php
Last active August 14, 2021 18:14
AttachJwtToken.php
<?php
namespace Tests\Concerns;
use App\Models\User;
use Tymon\JWTAuth\Facades\JWTAuth;
trait AttachJwtToken
{
/**
@trieb
trieb / esp_ap.cpp
Created September 1, 2016 14:28
Arduino ESP8266 Wifi AP and client with reconnect
//A simplified version of work begun by Tzapu and chriscook8
//for saving local WiFi SSID and Passwords to the ESP8266.
//Uses ESP8266 internal memory instead of the problematic EEPROM.
//To input local SSID and Password, connect to WiFi "ESP8266",
//and point your browser to "192.168.4.1".
#include "ESP8266WiFi.h"
#include <ESP8266mDNS.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp8266.h>
@djekl
djekl / stripe_sub_wo_cc.php
Created July 30, 2014 20:06
Laravel Cashier Free Subscription w/o Credit Card Filter
<?php
Route::filter('stripe.plans.free', function() {
if (Auth::guest() || Auth::user()->subscribed()) {
return;
}
$user = Auth::user();
$chosenPlan = 'free';