- Install iTerm2 from https://www.iterm2.com/
- Install oh-my-zsh from https://ohmyz.sh/ or https://github.com/robbyrussell/oh-my-zsh
- Set iTerm2 theme tab theme to Dark -
Preferences | Appearance | Tabs | Theme > Dark
- Install Fira Code fonts from https://github.com/tonsky/FiraCode (Clone and navigate to
dstr > ttf
, install all font files by double clicking) - Install Powerline fonts from https://github.com/powerline/fonts
- Set fonts for iTerm2 -
Preferences | Profiles | Text
- Change
Font
to14pt Fira code regular
and CheckUse Ligatures
checkbox - Change
Non ASCII Font
to14pt Fira mono
and CheckUse Ligatures
checkbox
- Change
- Install iTerm2 snazzy theme from https://github.com/sindresorhus/iterm2-snazzy
- Navigate to
Preferences | Profiles | Color Presets > Snazzy
- Navigate to
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 | |
/** | |
* Below is an the extended Filament resource your tenant panel resources | |
* will have to extend so that the queries are scoped properly. | |
*/ | |
namespace App\Filament; | |
use Filament\Resources\Resource; |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"sync" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" | |
"github.com/aws/aws-sdk-go/service/s3" |
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
<div name="{{ $name }}" | |
x-cloak | |
x-data="{ show: false, name: '{{ $name }}', details: null }" | |
@modal.window=" | |
show = ($event.detail.name === name); | |
details = $event.detail; | |
" | |
@modal:close-all.window="show = false" | |
class="modal d-block" | |
tabindex="-1" |
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 | |
declare(strict_types=1); | |
namespace App; | |
use App\Models\Age; | |
use Carbon\Carbon; | |
class AgeCalculator |
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
<div class="bg-red-500 p-1.5 responsive-debug text-center"> | |
<div class="hidden sm:hidden md:hidden lg:hidden xl:visible xl:block">XL</div> | |
<div class="hidden sm:hidden md:hidden lg:visible lg:block xl:hidden">LG</div> | |
<div class="hidden sm:hidden md:visible md:block lg:hidden xl:hidden">MD</div> | |
<div class="hidden sm:visible sm:block md:hidden lg:hidden xl:hidden">SM</div> | |
<div class="sm:hidden md:hidden lg:hidden xl:hidden">< SM</div> | |
</div> |
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
/** | |
* Custom validation callback to validate UK postcodes. | |
* | |
* It also tries to format provided postcode in correct format. | |
* | |
* Note: It's only usable for "postcode" fields. | |
*/ | |
public function check_postcode_uk($original_postcode) | |
{ | |
// Set callback's custom error message (CI specific) |
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 | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class Example extends Controller | |
{ | |
/** | |
* Display a listing of the resource. |
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> | |
<q-page ref="timeline" class="bg-grey-6 q-pt-xs"> | |
<div class="q-mb-sm"> | |
<q-banner v-show="postsCollection.length === 0 && !posts.loading && !newPost.loading" class="text-center text-pink-14 bg-white"> | |
There are no posts yet, be the first. | |
</q-banner> | |
<Post v-if="newPost.loading" :ajaxLoader="newPost.loading" :post="newPost.payload"></Post> | |
<q-infinite-scroll @load="onLoad" :offset="500" ref="infiniteScroll"> | |
<Post v-for="post in filterPostsByGroup" v-bind:key="post.id" :post="post"></Post> | |
<template v-slot:loading> |
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
export function createPerson ({ commit }, payload) { | |
const person = { | |
...payload, | |
type: 'member' | |
} | |
this._vm.$db.insert(person, (err, newDoc) => { | |
// NeDB: Callback is optional | |
// newDoc is the newly inserted document, including its _id | |
if (err) { | |
return err |
NewerOlder