相关命令:
# 移除原有的
sudo apt-get remove vim vim-runtime gvim
# 依赖安装
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
相关命令:
# 移除原有的
sudo apt-get remove vim vim-runtime gvim
# 依赖安装
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
code.exe的文件
)添加到环境变量Path中2.使用一下命令:
code -- opens Visual Studio Code
code . -- opens current directory in Visual Studio Code
code somefile -- opens somefile in Visual Studio Code
import React from 'react' | |
import IconTips from '@client/components/icon-tips' | |
import { funcOrValue } from '@client/utils/tool' | |
import './index.scss' | |
const IconPrefixCls = 'block-icon' | |
export default SelectComponent => class extends SelectComponent { | |
childStopPropagationEvent(e) { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
今天遇到了将本机的xx-net和虚拟机中的系统共享网络
的需要,其实这个并不难。比如,在virtualbox中的网络设置,将网络模式设置为NAT
连接就好。
但是,无论怎么设置都不能使得virtualbox中的Linux Mint共享XX-NET翻墙,也就是说不能在virtualbox宿主机器里面进行Google搜索。
经过一番搜索,终于解决了,记下来,以方便以后自己或者遇到相同的问题的小伙伴。
XX-Net\data\gae_proxy
目录下,备份config.ini
为config.ini.bak
,然后编辑config.ini
,部分设置如下。http://www.thevideogamegallery.com/gallery/image:41206/overwatch:anniversary-2018 |
#! /bin/bash | |
date_start=$(date +%s) | |
# colors const | |
red='\033[1;31m' # error | |
green='\033[1;32m' # success | |
yellow='\033[1;33m' # warning | |
cyan='\033[1;36m' # info | |
no_color='\033[0m' # No Color | |
# console func |
#!/bin/bash | |
TEMPDIR=`mktemp -d` | |
ESLINTRC=$TEMPDIR/.eslintrc | |
COMMAND="eslint --color -c $ESLINTRC --rule 'import/no-unresolved: 0' --rule 'import/no-duplicates: 0' --rule 'import/export: 0'" | |
git show HEAD:.eslintrc > $ESLINTRC | |
echo "### Ensure changes follow our code style... ####" | |
# See https://www.kernel.org/pub/software/scm/git/docs/githooks.html#pre-receive |
#post #post-body .highlight { | |
display: block; | |
overflow-x: auto; | |
padding: 0.5em; | |
background: #23241F | |
} | |
#post #post-body .highlight:before{ | |
background: #23241F; | |
border-top: none; | |
} |
function palindrome(str) {
// Good luck!
// \W -->匹配所有的字母、数字、下划线以外的字符
str = str.replace(/\W|_/g,'').toLowerCase();
var arrMaxIndex = str.length -1;
for(var i = 0;i <=arrMaxIndex/2;i++){
if(str.charAt(i)!==str.charAt(arrMaxIndex-i)){
return false;
}