Skip to content

Instantly share code, notes, and snippets.

View nathangross's full-sized avatar

Nathan Gross nathangross

View GitHub Profile
<?php
namespace App\Filament\Blocks;
use Filament\Forms\Get;
use Illuminate\Support\Str;
use Filament\Support\Markdown;
use Illuminate\Support\Collection;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\Toggle;
VStack {
VStack(alignment: .leading) {
Text("A Warm Welcome for SwiftUI")
.font(.title)
.foregroundColor(Color.red)
Text("Written by Nathan Gross")
.font(.subheadline)
.foregroundColor(Color.gray)
}
}
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\Relations\Relation;
Relation::morphMap([
'event' => 'App\Event',
@nathangross
nathangross / gist:e5ff7943248cb142bbfe
Last active August 29, 2015 14:11
simple link and version of css file
<!-- links to stylesheet and adds version number (filemtime) to force download newer css files -->
<link rel="stylesheet" href="<?php echo 'style.css' . '?' . filemtime('style.css'); ?>" />
@nathangross
nathangross / gist:ac7f2cd72964b1a9f715
Created July 11, 2014 19:42
My current grunt setup
// 'use strict';
module.exports = function(grunt) {
// load all grunt tasks matching the `grunt-*` pattern
require('load-grunt-tasks')(grunt);
grunt.initConfig({
// For WordPress projects
//theme_location: 'wp-content/themes/themename/',