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
const { reactive, effect,computed, ref, watch} = require('./reactive'); | |
const x = ref(0) | |
const y = ref(0) | |
const state = reactive({ | |
showSword: false, | |
message: "Hey young padawan!", | |
}); |
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
stages: | |
- deploy | |
production-deploy: | |
stage: deploy | |
environment: production | |
only: | |
- /^v.*$/ | |
script: | |
- which ssh-agent || (apt-get update -y && apt-get install openssh-client -y) |
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\Support\Synthesizers; | |
use Spatie\LaravelData\Data; | |
use Livewire\Mechanisms\HandleComponents\Synthesizers\Synth; | |
class SpatieLaravelDataSynthesizer extends Synth | |
{ | |
public static string $key = 'spld'; |
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\Models; | |
use Sushi\Sushi; | |
use Illuminate\Database\Eloquent\Model; | |
class Country extends Model | |
{ | |
use Sushi; |
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
import 'package:flutter/material.dart'; | |
class Statelessful<T> extends StatefulWidget { | |
final T Function() initialState; | |
final Widget Function( | |
BuildContext context, | |
T state, | |
void Function(T state) setState, | |
) builder; |
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
[ | |
{ | |
"name": "Afghanistan", | |
"flag": "🇦🇫", | |
"code": "AF", | |
"dial_code": "+93" | |
}, | |
{ | |
"name": "Åland Islands", | |
"flag": "🇦🇽", |
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
[ | |
{ | |
"state": "Adamawa", | |
"alias": "adamawa", | |
"lgas": [ | |
"Demsa", | |
"Fufure", | |
"Ganye", | |
"Gayuk", | |
"Gombi", |