Skip to content

Instantly share code, notes, and snippets.

View nissicreative's full-sized avatar

Mike Folsom nissicreative

View GitHub Profile
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@nissicreative
nissicreative / aliases.zsh
Last active March 30, 2023 03:20
~/.oh-my-zsh/custom/aliases.zsh
####################
# 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"
@nissicreative
nissicreative / php-cs-fixer.php
Last active April 28, 2023 00:41
~/.php-cs-fixer.php
<?php
return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'@PHP74Migration' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
@nissicreative
nissicreative / husqvarna.php
Created October 28, 2021 16:11
Husqvarna Error Codes
<?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',
@nissicreative
nissicreative / .php-cs-fixer.php
Created September 23, 2021 22:02
Config for PHP CS Fixer
<?php
return PhpCsFixer\Config::create()
->setRules([
'@PSR12' => true,
'@PHP74Migration' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_syntax' => [
'syntax' => 'short',
@nissicreative
nissicreative / settings.json
Created March 24, 2021 22:12
My Visual Studio Code Settings
{
"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",
@nissicreative
nissicreative / .php_cs.php
Last active September 23, 2021 22:06
My PHP CS Fixer Config (Deprecated - See .php-cs-fixer.php)
<?php
return PhpCsFixer\Config::create()
->setRules([
'@PSR12' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_syntax' => [
'syntax' => 'short',
],
@nissicreative
nissicreative / .prettierrc.json
Last active April 28, 2023 00:35
My prettierrc settings
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
@nissicreative
nissicreative / StripeForm.vue
Last active July 19, 2020 20:16
Vue Component with StripeElement
<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">