Blade Directive | Description | Example Usage |
---|---|---|
{{ $var }} | Echoes and escapes a variable | {{ $name }} |
{!! $var !!} | Echoes a variable without escaping | {!! $html !!} |
@if / @elseif / @else / @endif | Standard conditional blocks | @if($logged) Hi @else Login @endif |
@unless / @endunless | Runs |
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
#!/bin/bash | |
# Funzione per stampare messaggi di stato | |
print_status() { | |
echo "[$(date +'%Y-%m-%d %H:%M:%S')] $1" | |
} | |
# 1. Creazione del file `.prettierrc` | |
print_status "Creazione del file .prettierrc..." | |
cat <<EOF > .prettierrc |
Il Getting Things Done (GTD) di David Allen è molto più di un sistema di produttività: è un approccio per liberare la mente e trasformare il caos quotidiano in un flusso di lavoro organizzato. Come dice Allen stesso:
La tua mente è fatta per avere idee, non per conservarle.
In questa guida, scoprirai come applicare i cinque pilastri del GTD usando l’app TickTick, con trucchi, curiosità e consigli pratici per renderlo ancora più efficace.
Prima di entrare nel dettaglio di ogni fase, ecco una panoramica dei cinque pilastri del metodo:
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
#!/bin/bash | |
# ============================================================================= | |
# SETUP-GIT-DEPLOY | |
# ============================================================================= | |
# | |
# Questo script configura un sistema di deployment basato su Git per un sito web. | |
# | |
# STRUTTURA CREATA SUL SERVER: | |
# └── /base_path/domain.tld/ |
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
/** | |
* This function enables horizontal scrolling on a specified element when the mouse wheel is used. | |
* @param {string} selector - The CSS selector of the element on which to enable horizontal scrolling. | |
* @param {number} scrollValue - The amount to scroll each time the mouse wheel is used. Defaults to 100. | |
* @param {number} extraScroll - The number of times to allow scrolling past the end of the element. Defaults to 5. | |
* @returns {void} | |
*/ | |
export let horizMouseScroll = ( | |
selector, | |
scrollValue = 100, |
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
#!/bin/sh | |
# Script per il backup del database | |
# Modificare le variabili seguenti | |
database=nome_del_db | |
username=username_db | |
password=password_db | |
# Fine modifiche | |
today=$(date +"%Y-%m-%d-%H-%M-%S") | |
filename=${database}-${today}.gz |
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
var babelify = require('babelify'); | |
var browserSync = require('browser-sync'); | |
var browserify = require('browserify'); | |
var buffer = require('vinyl-buffer'); | |
var gulp = require('gulp'); | |
var plugins = require('gulp-load-plugins'); | |
var source = require('vinyl-source-stream'); | |
/* Configuration */ | |
var config = { |
NewerOlder