Skip to content

Instantly share code, notes, and snippets.

:octocat:
In order to understand recursion, one must first understand recursion

joseph Omer JoDeveloper

:octocat:
In order to understand recursion, one must first understand recursion
Block or report user

Report or block JoDeveloper

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View create new laravel app
#create new laravel project
function nlp() {
DIR="$HOME/projects"
if [ -d "$DIR/$1" ]; then
echo "Directory $DIR/$1 exists already."
return 1
fi
View gist:0dc2c53475ea740c26e7871860bdbf62
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> {
View gist:a31404eb392b84e5dc14015ab9d11e5d
import 'package:flutter/material.dart';
/// 简单列表项
class SampleListItem extends StatelessWidget {
/// 方向
final Axis direction;
/// 宽度
final double width;
View list_item.dart
import 'package:flutter/material.dart';
/// 列表项
class ListItem extends StatefulWidget {
// 点击事件
final VoidCallback onPressed;
// 图标
final Widget icon;
// 标题
final String title;
View user_profile.dart
import 'package:example/widget/list_item.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:url_launcher/url_launcher.dart';
/// 个人中心页面
class UserProfilePage extends StatefulWidget {
@override
_UserProfilePageState createState() => _UserProfilePageState();
View php-event-listener-example.php
<?php
class Event {
private static $events = [];
public static function listen($name, $callback) {
self::$events[$name][] = $callback;
}
public static function trigger($name, $argument = null) {
foreach (self::$events[$name] as $event => $callback) {
@JoDeveloper
JoDeveloper / Accordion.vue
Created Oct 29, 2019 — forked from laracasts/Accordion.vue
vuecasts.com - episode 41 source code.
View Accordion.vue
<template>
<div>
<accordion-item
v-for="(item, index) in items"
:title="item[titleName]"
:body="item[bodyName]"
:key="index"
:is-open="activeItemIndex == index"
@toggled="onToggle"
></accordion-item>
View launch_screen.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- The android:opacity=”opaque” line — this is critical in preventing a flash of black as your theme transitions. -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
<!-- The background color, preferably the same as your normal theme -->
<item android:drawable="@android:color/white"/>
<!-- Your product logo - 144dp color version of your app icon -->
<item>
@JoDeveloper
JoDeveloper / Flash.php
Created Aug 18, 2019 — forked from willishq/Flash.php
Laravel 5 Flash messages inspired by Laracasts Flash, optimized for Zurb Foundation
View Flash.php
<?php namespace App\Services;
use Illuminate\Session\Store;
/**
* Laravel 5 Flash messages inspired by Laracasts Flash Messages.
*
* @link https://github.com/laracasts/flash
*
* @author Andrew Willis <andrew@willishq.co.uk>
*
@JoDeveloper
JoDeveloper / Alert.vue
Created Aug 18, 2019 — forked from laracasts/Alert.vue
Alert .vue example.
View Alert.vue
<template>
<div class="Alert Alert--{{ type | capitalize }}">
<slot></slot>
</div>
</template>
<script>
export default {
props: {
type: {
You can’t perform that action at this time.