Skip to content

Instantly share code, notes, and snippets.

@martinandersen3d
martinandersen3d / A.md
Created March 21, 2020 12:00 — forked from aogg/A.md
laravel类库相关

laravel类库相关

  • SingleApiControllerTrait.php是给控制提供增删改查功能
@martinandersen3d
martinandersen3d / poo.md
Created March 21, 2020 11:51 — forked from lavandosovich/poo.md
PHP7 Object Orientetion

OOP in PHP

Declaring class properties or methods as static makes them accessible without needing an instantiation of the class. A property declared as static can not be accessed with an instantiated class object (though a static method can).

Useful keywords:

self - self from the root

parent - parent of the class

static - true self for exact class, static is more agile than self, super useful for inheritance issues

@martinandersen3d
martinandersen3d / cloudSettings
Created March 16, 2020 00:40 — forked from ashishmahi/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-03-13T11:41:19.205Z","extensionVersion":"v2.9.0"}
{
/*
// Place your snippets for PHP here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
@martinandersen3d
martinandersen3d / cloudSettings
Created March 16, 2020 00:28 — forked from wjchoi87/History\-11db3441\entries.json
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-11T15:12:25.221Z","extensionVersion":"v3.4.3"}
{"lastUpload":"2020-03-14T22:03:45.785Z","extensionVersion":"v3.4.3"}
@martinandersen3d
martinandersen3d / javascript.json
Created March 16, 2020 00:18 — forked from wcervini/cloudSettings
Visual Studio Code Axios Snippet
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@martinandersen3d
martinandersen3d / bs4-alerts-html.code-snippets
Created March 14, 2020 16:19
Visual Studio Code: Bootstrap 4 Snippets for HTML, PHP, BLADE, VUE. Several variations per component.
/* ----------------------------------------
Bootstrap 4
HTML, PHP, BLADE snippets
Alerts
042419
---------------------------------------- */
{
"Boostrap 4: Alert": {
@martinandersen3d
martinandersen3d / b-components.js
Created March 14, 2020 16:15 — forked from jaceju/b-components.js
Register BootstrapVue's components and directives for PhpStorm/WebStorm
import Vue from 'vue';
import bAlert from 'bootstrap-vue/es/components/alert/alert';
import bBadge from 'bootstrap-vue/es/components/badge/badge';
import bBreadcrumb from 'bootstrap-vue/es/components/breadcrumb/breadcrumb';
import bBreadcrumbItem from 'bootstrap-vue/es/components/breadcrumb/breadcrumb-item';
import bBreadcrumbLink from 'bootstrap-vue/es/components/breadcrumb/breadcrumb-link';
import bButton from 'bootstrap-vue/es/components/button/button';
import bButtonClose from 'bootstrap-vue/es/components/button/button-close';
import bButtonGroup from 'bootstrap-vue/es/components/button-group/button-group';
import bButtonToolbar from 'bootstrap-vue/es/components/button-toolbar/button-toolbar';
@martinandersen3d
martinandersen3d / Readme.md
Created March 14, 2020 16:12 — forked from pravnkay/Readme.md
Custom theme support for Bootstrap-Vue

Custom theme support for Bootstrap-Vue

Versions used

@vue/cli 4.1.1

Using below commands to install bootstrap-vue, adds the plugin file and pre-fills the statements. Just have alook at them and edit them

vue create my-app
cd my-app

vue add bootstrap-vue