- using python based http server
python -m SimpleHTTPServer # Serving HTTP on 0.0.0.0 port 8000 (by default)
python -m SimpleHTTPServer 3000 # Serving HTTP on 0.0.0.0 port 3000
- using node based http server
npm i -g http-server
http-server
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
## based on https://gist.github.com/cboettig/8643341bd3c93b62b5c2 | |
events { | |
worker_connections 1024; | |
} |
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
python -m SimpleHTTPServer # Serving HTTP on 0.0.0.0 port 8000 (by default)
python -m SimpleHTTPServer 3000 # Serving HTTP on 0.0.0.0 port 3000
npm i -g http-server
http-server
The goal of this project is to integrate HTML5 games into Rocket.Chat.
sudo apt install devilspie # 安装 devilspie
mkdir ~/.devilspie # 创建文件夹 ~/.devilspie
vim ~/.devilspie/vscode_transparent.ds # 新建文件 vscode_transparent.ds
( if
( contains ( window_class ) "Code" )
;; Modify company so that tab and S-tab cycle through completions without | |
;; needing to hit enter. | |
(defvar-local company-simple-complete--previous-prefix nil) | |
(defvar-local company-simple-complete--before-complete-point nil) | |
(defun company-simple-complete-frontend (command) | |
(when (or (eq command 'show) | |
(and (eq command 'update) | |
(not (equal company-prefix company-simple-complete--previous-prefix)))) |
"実行コマンド | |
command! Run call s:Run() | |
nmap <F5> :Run<CR> | |
function! s:Run() | |
let e = expand("%:e") | |
if e == "c" | |
:Gcc | |
endif | |
if e == "py" | |
:Python |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
sudo apt-get install -y liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
git clone https://github.com/vim/vim ~/vimtemp | |
cd ~/vimtemp | |
git pull && git fetch | |
cd src |