Skip to content

Instantly share code, notes, and snippets.

View JoDeveloper's full-sized avatar
💙
Fluttering

Yousuf Omer JoDeveloper

💙
Fluttering
View GitHub Profile
import 'package:flutter/material.dart';
/// 简单列表项
class SampleListItem extends StatelessWidget {
/// 方向
final Axis direction;
/// 宽度
final double width;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'dart:math' as math;
class SlidingCardsView extends StatefulWidget {
@override
_SlidingCardsViewState createState() => _SlidingCardsViewState();
}
class _SlidingCardsViewState extends State<SlidingCardsView> {
#create new laravel project
function nlp() {
DIR="$HOME/projects"
if [ -d "$DIR/$1" ]; then
echo "Directory $DIR/$1 exists already."
return 1
fi
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
android.enableUnitTestBinaryResources=true
lintOptions {
disable 'InvalidPackage'
}
aaptOptions {
cruncherEnabled = false
}
defaultConfig {
applicationId "com.jodeveloper.missing"
@JoDeveloper
JoDeveloper / js create token
Last active August 17, 2021 09:41
js create token
const rand=()=>Math.random(0).toString(36).substr(2);
const token=(length)=>(rand()+rand()+rand()+rand()).substr(0,length);
console.log(token(56));
@JoDeveloper
JoDeveloper / AppServiceProvider.php
Created November 20, 2022 11:36 — forked from greenspace10/AppServiceProvider.php
Laravel, Livewire, Alpine JS Toast Notifications
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Component::macro('notify', function ($message, $title = '', $type = 'success') {
$this->dispatchBrowserEvent('notify', ['message' => $message, 'title' => $title, 'type' => $type]);
});