A HTML/CSS Class Naming Convention for Scalable/Modular CSS.
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 | |
... | |
public function switchRows(UpdateProductRowsRequest $request): JsonResponse | |
{ | |
$input = $request->validated(); | |
$sourceItem = $this->baseRepository->find($input['sourceId']); |
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
// ==UserScript== | |
// @name Webpack Error Screen Light Mode | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author EgoistDeveloper | |
// @match http://localhost:4200/* | |
// @icon https://cdn-icons-png.flaticon.com/512/7979/7979660.png | |
// @grant none | |
// ==/UserScript== |
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 | |
// https://image.intervention.io/v2/api/trim | |
use Intervention\Image\ImageManager as Image; | |
$imagePath = storage_path('app\public\product\images\testa.jpg'); | |
$newPath = public_path('testa.jpg'); | |
$image = new Image(); | |
$res = $image->make($imagePath)->trim('top-left', null, 50, 30)->save($newPath); |
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
$models3dPath = __DIR__ . '/./img/3d-models'; | |
$models3dList = null; | |
if (!file_exists($models3dPath)) { | |
mkdir($models3dPath, 0775, true); | |
} | |
if (file_exists($models3dPath)) { | |
$files = scandir($models3dPath); | |
$files = array_diff($files, 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\Traits; | |
use Illuminate\Support\Facades\Storage; | |
use Symfony\Component\HttpFoundation\StreamedResponse; | |
trait StorageTrait | |
{ | |
/** |
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
// clear comment tags regex | |
([ \n]+.|\n)?<!--[ ]+(.*)--> | |
// https://regex101.com/r/W6GLaQ/1 |
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
/* eslint-disable no-var */ | |
/* eslint-disable @typescript-eslint/no-unused-vars */ | |
import { HttpService } from '@nestjs/axios'; | |
import { Controller, Get, Param } from '@nestjs/common'; | |
import { HTMLElement, Node, NodeType, parse } from 'node-html-parser'; | |
import { catchError, map, Observable, of } from 'rxjs'; | |
import puppeteer from 'puppeteer'; | |
@Controller('unicode') | |
export class UnicodeController { |
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
src | |
├─> app | |
│ ├─> Console | |
│ │ └── Kernel.php | |
│ ├─> Exceptions | |
│ │ └── Handler.php | |
│ ├─> Http | |
│ │ ├─> Controllers | |
│ │ │ └── Controller.php | |
│ │ ├── Kernel.php |
NewerOlder