Skip to content

Instantly share code, notes, and snippets.

Avatar

Jesus Enmanuel De La Cruz enmanuel97

View GitHub Profile
View masonry-layout.scss
//parent selector
#container {
@media (max-width: 779px) and (min-width: 0px) {
column-count: 2;
}
@media (max-width: 1039px) and (min-width: 780px) {
column-count: 3;
}
View string_to_color_helper.dart
Color colorFromHex(String hexColor) {
String hexCode = hexColor.replaceAll('#', '');
return Color(int.parse('FF$hexCode', radix: 16));
}
View gist:603a14fd6454592580b2b6e9d1e9a4db
import { useState } from "react"
interface Validation {
[key: string]: {
required?: boolean;
minLength?: boolean;
maxLength?: boolean;
isEmail?: boolean;
isNumeric?: boolean;
}
@enmanuel97
enmanuel97 / BaseRepository.php
Last active Jun 2, 2022
BaseRepository.php
View BaseRepository.php
<?php
namespace App\Repositories;
use Illuminate\Container\Container as Application;
use Illuminate\Database\Eloquent\Model;
abstract class BaseRepository
{
/**
View AccountRepository.php
<?php
namespace App\Repositories;
use App\Models\Account;
class AccountRepository extends BaseRepository
{
/**
* @var array
View debug_helper.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Debug helper
*
* Print clear and readable data only in development environment and automatically put die in your code
*
* @category Helpers
* @author Ahmad Samiei <ahmad.samiei@gmail.com>
* @version 1.2.0