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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
#################### | |
# ALIASES | |
#################### | |
alias cpwd="pwd | tr -d '\n' | pbcopy && echo 'Current working directory copied to clipboard.'" | |
alias flushdns="sudo killall -HUP mDNSResponder" | |
alias dskill="find . -name '*.DS_Store' -type f -delete" | |
alias dockspacer="defaults write com.apple.dock persistent-apps -array-add '{tile-type=\"spacer-tile\"}' && killall Dock" |
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 | |
return (new PhpCsFixer\Config()) | |
->setRules([ | |
'@PSR12' => true, | |
'@PHP74Migration' => true, | |
'align_multiline_comment' => true, | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => [ |
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 | |
return [ | |
'error_codes' => [ | |
0 => 'Unexpected error', | |
1 => 'Outside working area', | |
2 => 'No loop signal', | |
3 => 'Wrong loop signal', | |
4 => 'Loop sensor problem, front', | |
5 => 'Loop sensor problem, rear', |
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 | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'@PSR12' => true, | |
'@PHP74Migration' => true, | |
'align_multiline_comment' => true, | |
'array_indentation' => true, | |
'array_syntax' => [ | |
'syntax' => 'short', |
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
{ | |
"workbench.colorTheme": "Cobalt2", | |
"workbench.iconTheme": "vscode-icons", | |
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontSize": 16, | |
"editor.lineHeight": 28, | |
"editor.fontLigatures": true, | |
"editor.formatOnPaste": true, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.wordWrap": "on", |
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 | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'@PSR12' => true, | |
'align_multiline_comment' => true, | |
'array_indentation' => true, | |
'array_syntax' => [ | |
'syntax' => 'short', | |
], |
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
{ | |
"printWidth": 80, | |
"tabWidth": 2, | |
"useTabs": false, | |
"semi": true, | |
"singleQuote": true, | |
"quoteProps": "as-needed", | |
"jsxSingleQuote": true, | |
"trailingComma": "es5", | |
"bracketSpacing": true, |
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> | |
<form @submit.prevent="onSubmit" @keyup="form.errors.clear($event.target.name)"> | |
<!-- Stripe Elements --> | |
<div class="stripe-element"> | |
<stripe-elements ref="card" @change="stripeEvent($event);"></stripe-elements> | |
<small v-if="cardError" class="form-text text-danger">{{ cardError }}</small> | |
</div> | |
<!-- Errors --> | |
<div v-show="form.errors.any()" class="alert alert-danger"> | |
<ul class="list-unstyled mb-0"> |
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
// Fancybox | |
// -------------------------------------------------- // | |
$('.modal-link').click(function (evt) { | |
evt.preventDefault(); | |
const url = this.href; | |
const breakPoint = this.dataset.breakPoint || 768; | |
const separator = /\?/.test(url) ? '&' : '?'; | |
// Leave some room on either side of a modal. |
NewerOlder