Some Laravel macros I have found useful and will probably put in a package someday.
The code in this gist is provided under the MIT license (see LICENSE.md).
[ | |
{ | |
"key": "ctrl+r", | |
"when": "findWidgetVisible && !replaceActive", | |
"command": "editor.action.startFindReplaceAction" | |
} | |
] |
<template> | |
<main class="min-w-screen bg-purple-500 text-purple-700 text-xs min-h-screen flex items-center justify-center"> | |
<div class="bg-purple-700 p-3 rounded-lg border-2 border-t-purple-600 border-x-purple-800 border-b-purple-900 shadow-lg"> | |
<div class="p-1 bg-purple-900 rounded overflow-hidden"> | |
<div class="flex space-x-[2px]"> | |
<div | |
v-for="key in keys" | |
v-if="key.row === '1'" | |
:key="key.label" | |
class="h-10 min-w-10" |
if-shell "[[ ! -d ~/.tmux/plugins/tpm ]]" \ | |
'run-shell "mkdir -p ~/.tmux/plugins/tpm"; \ | |
run-shell "git clone https://github.com/tmux-plugins/tpm.git ~/.tmux/plugins/tpm"' | |
# set Zsh as your default Tmux shell | |
set-option -g default-shell /usr/bin/zsh | |
# Tmux should be pretty, we need 256 color for that | |
set -g default-terminal "screen-256color" |
'.text.html.statamic': | |
'antlers-404': | |
'prefix': '404' | |
'body': '{{ 404 }}$0' | |
'antlers-asset': | |
'prefix': 'asset' | |
'body': '{{ asset url="${1:path}" }}' | |
'antlers-assets-container': | |
'prefix': 'assets' | |
'body': '{{ assets container="${1:handle}" }}\n\t${2:}\n{{ /assets }}$0' |
export LANG=en_US.UTF-8 | |
source $HOME/antigen/antigen.zsh | |
antigen use oh-my-zsh | |
antigen bundle jessarcher/zsh-artisan | |
antigen bundle zsh-users/zsh-autosuggestions | |
antigen bundle zsh-users/zsh-completions | |
antigen bundle zsh-users/zsh-history-substring-search |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true | |
indent_style = space | |
indent_size = 2 | |
trim_trailing_whitespace = true |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>io.gitea.web</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>sh</string> | |
<string>-c</string> |
# Default server, with a "hello world" page & phpinfo. | |
server { | |
listen 80 default; | |
server_name localhost; | |
root /usr/local/var/www/default; | |
index index.php; | |
error_log /usr/local/var/log/nginx/default.error.log; |
Some Laravel macros I have found useful and will probably put in a package someday.
The code in this gist is provided under the MIT license (see LICENSE.md).
<?php | |
namespace Example; | |
use Slim\App; | |
use SomeDependency; | |
class MyGroup | |
{ | |
public function __construct(SomeDependency $dependency) |