Skip to content

Instantly share code, notes, and snippets.

View fraol19's full-sized avatar

Fraol fraol19

  • Addis Ababa
View GitHub Profile
@fraol19
fraol19 / Schedulable.php
Created October 15, 2020 17:44 — forked from davidpiesse/Schedulable.php
Laravel Custom Class/Model Scheduling
<?php
//Don't forget to change the namespace!
namespace App\Traits;
use Cron\CronExpression;
use Illuminate\Support\Carbon;
use Illuminate\Console\Scheduling\ManagesFrequencies;
trait Schedulable{
# Autogenerated input type of AddComment
input AddCommentInput {
# A unique identifier for the client performing the mutation.
clientMutationId: String
# The Node ID of the subject to modify.
subjectId: ID!
# The contents of the comment.
body: String!
@fraol19
fraol19 / app.scss
Last active May 31, 2020 14:49
This SASS code helps u to easily create css spacing classes(aka margins and paddings) and helps u to apply a specific spacing at specific screen size
$break-points: ("xs": ("max": 639), "sm": ("min": 640, "max": 767), "md": ("min": 768, "max": 1023), "lg": ("min": 1024, "max": 1279), "xl": ("min": 1280));
$space-size: (5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 75, 100);
$sides: (top, bottom, left, right);
@mixin basic-sizing($break-size:'') {
@each $space in $space-size {
.m#{$break-size}-#{$space} {
margin: #{$space}px;
}
.p#{$break-size}-#{$space} {
padding: #{$space}px;