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
.DEFAULT_GOAL = help | |
# Executables | |
PHP = php | |
COMPOSER = composer | |
YARN = yarn | |
SYMFONY = symfony | |
DC = docker-compose -f docker-compose.yml -f docker-compose.override.yml |
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
.DEFAULT_GOAL = help | |
.PHONY: help | |
help: ## Show this help | |
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' |
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
<template> | |
<div class="switch-control" v-bind="$attrs"> | |
<div class="text off" :class="{ current: !checked }">{{ off }}</div> | |
<label class="switch"> | |
<input type="checkbox" | |
value="1" | |
v-model="checked" | |
@change="onChange" /> | |
<span class="slider"></span> | |
</label> |
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
(function($) { | |
$.pluginName = function(element, options) { | |
var defaults = { | |
foo: 'bar', | |
onFoo: function() {} | |
} | |
var plugin = this; |
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
SET FOREIGN_KEY_CHECKS = 0; | |
TRUNCATE table1; | |
SET FOREIGN_KEY_CHECKS = 1; |