This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 <[email protected]> | |
* @version 1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Repositories; | |
use App\Models\Account; | |
class AccountRepository extends BaseRepository | |
{ | |
/** | |
* @var array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Repositories; | |
use Illuminate\Container\Container as Application; | |
use Illuminate\Database\Eloquent\Model; | |
abstract class BaseRepository | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState } from "react" | |
interface Validation { | |
[key: string]: { | |
required?: boolean; | |
minLength?: boolean; | |
maxLength?: boolean; | |
isEmail?: boolean; | |
isNumeric?: boolean; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Color colorFromHex(String hexColor) { | |
String hexCode = hexColor.replaceAll('#', ''); | |
return Color(int.parse('FF$hexCode', radix: 16)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; | |
} | |