After download and move to your interested folder, add this line to ~/.bashrc and ~/.profile
export GOPATH=$HOME/gowork
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOPATH/bin
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
# Author: mariohandsome.github.io | |
#!/bin/bash | |
SERVER_NAME="SERVER_NAME" # folder name in cloud | |
BLACK_LIST=( "source_in_git" "source_in_git_02" ) # folder not upload | |
TIMESTAMP=$(date +"%F") | |
BACKUP_DIR="/root/backup/$TIMESTAMP" |
#!/bin/bash | |
MONGO_DATABASE="your_database_name" | |
MONGO_HOST="127.0.0.1" | |
MONGO_PORT="your_mongo_port(default 27017)" | |
USERNAME="your_admin" | |
PASSWORD="your_password" | |
TIMESTAMP=`date +%F-%H%M%S` | |
BACKUP_NAME="$MONGO_DATABASE-$TIMESTAMP" |
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const jwt = require('jsonwebtoken'); | |
const router = express.Router(); | |
const config = require('./config'); | |
const utils = require('./utils'); | |
const tokenList = {}; | |
const app = express(); | |
router.get('/', (req, res) => { |
After download and move to your interested folder, add this line to ~/.bashrc and ~/.profile
export GOPATH=$HOME/gowork
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOPATH/bin
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/additional-methods.min.js"></script> | |
<form id="myForm" name="myForm" action="#" method="POST"> <style>#email-error { display: block; color: red; }</style> | |
<label for="email">Email: </label> | |
<input id="email" name="email" type="email" minlength="6"/><br> | |
<input type="submit" value="Submit"> | |
</form> |
const axios = require('axios') | |
/* ... */ | |
const params = new URLSearchParams() | |
params.append('name', 'Akexorcist') | |
params.append('age', '28') | |
params.append('position', 'Android Developer') | |
params.append('description', 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/') | |
params.append('awesome', true) |
<?php | |
/** | |
* Add rest api endpoint for category listing | |
*/ | |
/** | |
* Class Category_List_Rest | |
*/ | |
class Category_List_Rest extends WP_REST_Controller { | |
/** |
// we have an array of objects, we want to remove one object using only the id property | |
const apps = [{id:34,name:'My App',another:'thing'},{id:37,name:'My New App',another:'things'}]; | |
// get index of object with id of 37 | |
const removeIndex = apps.findIndex( item => item.id === 37 ); | |
// remove object | |
apps.splice( removeIndex, 1 ); | |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |