package main
import (
"fmt"
"strconv"
)
func main() {
startUnicodeStr := "4E00"
This file contains 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
let mapleader = "," | |
set nocompatible " Disable compatibility to old-time vi | |
set showmatch " Show matching brackets. | |
set ignorecase " Do case insensitive matching | |
set mouse=v " middle-click paste with mouse | |
set hlsearch " highlight search results | |
set tabstop=4 " number of columns occupied by a tab character | |
set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing | |
set expandtab " converts tabs to white space |
This file contains 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
quick'n'dirty for linux: | |
./steamcmd.sh | |
login anonymous | |
force_install_dir yourdirectoryhere | |
app_update 294420 -beta latest_experimental | |
如果报错 |
https://about.gitlab.com/downloads/#ubuntu1404
sudo apt-get install curl openssh-server ca-certificates postfix
curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/trusty/gitlab-ce-XXX.deb/download dpkg -i gitlab-ce-XXX.deb
sudo gitlab-ctl reconfigure
package main
import (
"bytes"
"fmt"
"net/http"
"net/url"
"strconv"
)
This file contains 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
var debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: __dirname + "/js", | |
filename: "scripts.min.js" |
mkdir test1 # dir path must not contine 'react', will cause error
npm init
set info
npm install --save react react-dom redux react-redux immutable
npm install --save-dev webpack babel-loader babel-preset-es2015 babel-preset-react
This file contains 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
package main | |
import ( | |
"crypto/md5" | |
"errors" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"path/filepath" | |
//"sort" |
This file contains 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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"net/rpc" | |
"os" | |
) |