This script can be used to generate a set of CSS variables from a Tailwind shades object.
Let's say you have the following JavaScript object. You might have generated such an object on a site such as Tailwind Shades.
{| import "http" exposing HttpServer, Request, Response | |
| function main() { | |
| HttpServer.get("/", func (req Request, res Response) => { | |
| return res.Send("Hello!") | |
| }) | |
| HttpServer.listen(8080) | |
| } |
| // module name shoild follow folders, like PSR-4 | |
| module controllers | |
| import "http" exposing Request, Response | |
| export class HelloController { | |
| exposed function handle(req Request, res Response) { | |
| return res.send("Hello") | |
| } |
| // module name shoild follow folders, like PSR-4 | |
| module controllers | |
| import "http" exposing Request, Response | |
| export class HelloController { | |
| exposed function handle(req Request, res Response) { | |
| return res.send("Hello") | |
| } |
| <?php | |
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Support\Str; | |
| class Post extends Model | |
| { | |
| public static function boot() |
| <div x-data="example()"> | |
| <template x-for="(item, i) in items" :key="i"> | |
| <div x-bind="props(i)"></div> | |
| </template> | |
| </div> | |
| <script> | |
| const example = () => ({ | |
| current: 0, | |
| items: [1, 2, 3], | |
| props: (i) => ({ |
This script can be used to generate a set of CSS variables from a Tailwind shades object.
Let's say you have the following JavaScript object. You might have generated such an object on a site such as Tailwind Shades.
{This script command provides a quick way of searching the Laravel documentation.
It accepts a query and will open the first result in your default browser.
~/.config/raycast/scripts folder if you don't already have one.| type Option<T> = Some<T> | None<T>; | |
| interface Optional<T> { | |
| unwrap(): T; | |
| unwrapOr(or: T): T; | |
| isSome(): boolean; | |
| isNone(): boolean; | |
| } | |
| class Some<T> implements Optional<T> { |
| { | |
| "scopeName": "source.pxp", | |
| "patterns": [ | |
| { | |
| "include": "#attribute" | |
| }, | |
| { | |
| "include": "#comments" | |
| }, | |
| { |
| <?php | |
| namespace Sample; | |
| class SampleClass implements SampleInterface | |
| { | |
| public string $public; | |
| protected SampleClass $protected; |