Skip to content

Instantly share code, notes, and snippets.

@Volmarg
Volmarg / vue ts
Created June 19, 2021 04:23
vue ts
{
"name": "vue-cli",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
@Volmarg
Volmarg / PreconfiguredVue.js
Created March 29, 2021 16:00
PreconfiguredVue
export default class PreconfiguredVue
{
/**
* @description delimiters used to translate vue logic, required since twig utilizes the `{{ }}`
*/
static readonly VUE_DEFAULT_DELIMITERS = ["[[", "]]"];
/**
* @description creates vue instance for dom element but uses preconfigured vue with common reusable logic,
* this provides the same output as creating SPA with vue in root such as body
@Volmarg
Volmarg / gist:81b193c1cda8cda5aef6536f684168d4
Created February 20, 2021 15:14
Selecting data from database as json
SELECT CONCAT(
'[',
GROUP_CONCAT(JSON_OBJECT(
'id', id,
'name', name,
'color', color,
'background_color', background_color,
'drag_background_color', drag_background_color,
'border_color', border_color,
'deleted', deleted
@Volmarg
Volmarg / free-photoshop.md
Created December 29, 2020 12:00 — forked from molcik/free-photoshop.md
Modify Photoshop to never ending trial

How Does It Work

All you have to do, to extend your trial period, is change number in TrialKey element in application.xml. This file is located in /Library/Application Support/Adobe/Adobe Photoshop/AMT. You can navigate there with this command:

cd /Library/Application\ Support/Adobe/Adobe\ Photoshop\ */AMT

Then you have to open the file and edit it. You can use just TextEdit app.

open -a TextEdit application.xml