This file contains hidden or 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
{ | |
"Title": "Swap 'y' and 'z'", | |
"rules": [ | |
{ | |
"description": "Swap 'y' and 'z'", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "y" |
This file contains hidden or 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
npx nuxt@latest init <projectname> | |
yarn add -D prisma | |
npx prisma init | |
.env-ben beállítani | |
//and in the schema.prisma too | |
npx prisma db pull //this make a schema from the database | |
npx prisma generate | |
npx nuxi prepare |
This file contains hidden or 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
sed -i '' 's/utf8mb4_0900_ai_ci/utf8_general_ci/g' dump.sql | |
sed -i '' 's/utf8mb4/utf8/g' dump.sql |
This file contains hidden or 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
Running bash [-c /var/folders/7x/810vnfgj4gs6t73_fzplnl_40000gn/T/test_ddev.sh] | |
======= Existing project config ========= | |
These config files were loaded for project megbizasiszerzodes: [/Users/tamasamon/Projects/megbizasiszerzodes/.ddev/config.yaml] | |
name: megbizasiszerzodes | |
type: laravel | |
docroot: public | |
php_version: 7.4 | |
webserver_type: apache-fpm | |
webimage: ddev/ddev-webserver:v1.22.3 | |
additional_hostnames: [] |
This file contains hidden or 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
<img src alt=“”valami> ugyanaz mint <img src={src} alt=“valami”> vagy <img src="{src}" alt=“valami”> // Ugyanaz a változó neve, mint az attribútum | |
<button on:click={handleClick}> | |
Clicked {count} {count === 1 ? 'time' : 'times'} | |
</button> | |
<script> | |
let count = 0; | |
let img = "https://i.imgflip.com/1g8my4.jpg" | |
$: doubled = count * 2; //reactív lesz |
This file contains hidden or 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 | |
trait TranslationTrait { | |
public function __get($key) | |
{ | |
if (collect(Schema::getColumnListing($this->getTable()))->contains($column = $key.'_'.app()->getLocale())) | |
{ | |
return $this->{$column}; | |
} |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Elementor SAPI integration | |
* Plugin URI: https://webfeszek.hu | |
* Description: Adds a webhook for easy integration to SAPI | |
* Version: 0.1.0 | |
* Author: Tamas Amon | |
* Author URI: https://amon.hu | |
* License: GPLv2 or later |
This file contains hidden or 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
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and - | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' |
This file contains hidden or 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
/** | |
* Render an exception into an HTTP response. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @param \Exception $exception | |
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse | |
*/ | |
public function render($request, Exception $exception) | |
{ | |
if (env('APP_DEBUG')) { |
This file contains hidden or 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
<template> | |
<q-layout view="lHh Lpr lFf"> | |
<q-layout-header> | |
<q-toolbar | |
color="primary" | |
:glossy="$q.theme === 'mat'" | |
:inverted="$q.theme === 'ios'" | |
> | |
<q-btn | |
flat |
NewerOlder