<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
import React, {Component} from "react"; | |
import cx from 'classnames'; | |
import vjs from 'video.js'; | |
import _ from 'lodash'; | |
import ReactDOM from 'react-dom'; | |
const DEFAULT_HEIGHT = "100%"; | |
const DEFAULT_WIDTH = "100%"; | |
const DEFAULT_ASPECT_RATIO = (9 / 16); | |
const DEFAULT_ADJUSTED_SIZE = 0; |
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |
/** | |
* 初始化rabbitmq | |
* author: colin.xu | |
* 2016.11.8 | |
*/ | |
const amqp = require('amqplib'); | |
const config = require('config'); | |
const log4js = require('log4js'); | |
const logger = log4js.getLogger('amqp'); |
var crypto = require("crypto") | |
function encrypt(key, data) { | |
var cipher = crypto.createCipher('aes-256-cbc', key); | |
var crypted = cipher.update(text, 'utf-8', 'hex'); | |
crypted += cipher.final('hex'); | |
return crypted; | |
} |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
version: '2' | |
services: | |
mongo1: | |
container_name: mongo1 | |
image: daocloud.io/mongo | |
ports: | |
- 27017:27017 | |
expose: | |
- 27017 | |
networks: |
/** | |
* 获取url参数值 | |
* @param {string} url 需要获取参数的url | |
* @param {string} name 需要获取的参数名 | |
* @return {string} 返回获取的参数名 | |
*/ | |
var getUrlParam = function(name, url){ | |
if(!name){ | |
return ''; | |
} |
``` | |
autoload -Uz compinit && compinit | |
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' | |
``` |