This file contains hidden or 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
{ | |
"Class Constructor": { | |
"prefix": "_con", | |
"body": [ | |
"protected $$1;\n", | |
"public function __construct($$1)", | |
"{", | |
"\t $$this->$1 = $$1;", | |
"}", | |
], |
This file contains hidden or 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
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<h1>{{title}}</h1> |
This file contains hidden or 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
create table table_name ( | |
id int(11) not null auto_increment primary key, | |
name varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, | |
created_at TIMESTAMP not null default CURRENT_TIMESTAMP, | |
updated_at DATETIME null); |
This file contains hidden or 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
# tip: create a separate file, e.g. .bash_aliases, | |
# in the user root dir and import it in .bash_rc like this: | |
# . ~/.bash_aliases | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias s='php -S localhost:8888' |