Skip to content

Instantly share code, notes, and snippets.

View cnBruceHong's full-sized avatar
💭
I may be slow to respond.

Bruce cnBruceHong

💭
I may be slow to respond.
View GitHub Profile
@cnBruceHong
cnBruceHong / reflection.go
Created September 13, 2018 14:58 — forked from drewolson/reflection.go
Golang Reflection Example
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`
@cnBruceHong
cnBruceHong / zshrc
Created March 20, 2018 13:37
zshrc
# Path to your oh-my-zsh installation.
export ZSH=/Users/Bruce/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="philips"
# Uncomment the following line to use case-sensitive completion.
// @file main.go
// @brief
// @author tenfyzhong
// @email tenfyzhong@qq.com
// @created 2017-06-26 17:54:34
package main
import (
"flag"
"fmt"
@cnBruceHong
cnBruceHong / is_really_writable
Created September 24, 2017 17:06
php不可靠函数is_writable的另外一种安全实现
if ( ! function_exists('is_really_writable'))
{
/**
* Tests for file writability
*
* is_writable() returns TRUE on Windows servers when you really can't write to
* the file, based on the read-only attribute.
*
* @link https://bugs.php.net/bug.php?id=54709
* @param string
@cnBruceHong
cnBruceHong / git_toturial
Created June 17, 2016 02:23 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库