Skip to content

Instantly share code, notes, and snippets.

把 Star 当做收藏在用,点起来很随性。GitHub 全是各种 Tutorial 和 Demo

bwangel bwangelme

把 Star 当做收藏在用,点起来很随性。GitHub 全是各种 Tutorial 和 Demo
View GitHub Profile
bwangelme / template.txt
Created May 6, 2020
ES 中的 index template 和 Dynamic Template
View template.txt
PUT ttemplate/_doc/1
"someNumber": "1",
"someDate": "2019/02/03"
GET ttemplate/_mapping
GET _cat/indices
View main.go
package main
import (
var x = 0
func sendNumber(wg *sync.WaitGroup, ch chan<- int, nump *int) {
View 免费项目实战课程.md


  1. 不知道简历的项目要写什么?想边做项目边学习新技能?本项目致力于给程序员提供网络上最好的免费项目实战课程
  2. 为了达到这个目标,我们搜索了国内外大量的不同平台的网络课程以及技术博客,并经过初步的筛选,免费的项目并不代表质量低,有时候免费的反而才是最好的。
  3. 网络课程质量参差不齐,学习前可以先对比再谨慎选择,若课程有涉及以下几种情况的话,请提交 issue。
    • 涉及大量广告
    • 需要付费才能学习完整课程
    • 过时,不适合当前开发环境
    • 错漏百出,质量非常低
  4. 课程排序按照字符串从小到大升序排列
bwangelme / swagger.yaml
Created Nov 26, 2019
httpbin swagger config
View swagger.yaml
basePath: /
definitions: {}
responsibleDeveloper: Kenneth Reitz
responsibleOrganization: Kenneth Reitz
url: ''
description: 'A simple HTTP Request & Response Service.<br/> <br/> <b>Run locally: </b> <code>$ docker run -p 80:80 kennethreitz/httpbin</code>'
View cpe1.c
#include <stdio.h>
#include <string.h>
char prog[80];
int progIndex;
char *rwtab[6] = {"begin", "if", "then", "while", "do", "end"};
const int SYN_ERROR = -1;
const int SYN_EXIT = 0;
const int SYN_NUM = 11;
View tmux.conf
unbind ^b
set -g prefix 'C-x'
# 设置窗口的数字从1开始
set -g base-index 1
setw -g pane-base-index 1
bind r source-file ~/.tmux.conf \; display-message "Config reload"
bind h select-pane -L
#!/usr/bin/env bash
# checking for xmkmf... no
# checking for X... (cached) no
# checking if X11 header files can be found... no
# checking --enable-gui argument... no GUI support
# checking for X11/SM/SMlib.h... (cached) no
## if you meet the above situation on ubuntu 16.04, please follow the following cmd
# sudo apt-get install xorg-dev
View vimrc
" An example for a vimrc file.
" Maintainer: Yichun Zhang <>
" Credit: Bram Moolenaar <> and Audrey Tang
" Last change: 2019 Aug 19
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
from mitmproxy import command, flow, ctx
from http import client
import pyperclip
import tempfile
from urllib import request, parse
import typing
import json
import re
import os
View extend_assert.go
func Int32LessEqual(t *testing.T, x, y int32, msgAndArgs ...interface{}) bool {
if x > y {
return assert.Fail(t, fmt.Sprintf("%d not less than %d", x, y), msgAndArgs)
return true
func TestMaxRune(t *testing.T) {
var maxRune int32 = 122
You can’t perform that action at this time.