Skip to content

Instantly share code, notes, and snippets.

View ftwbzhao's full-sized avatar
🌈
Welcome to UBOUND!

Bill Zhao ftwbzhao

🌈
Welcome to UBOUND!
  • MIZHOME
  • Nanjing, China
View GitHub Profile
@onlytiancai
onlytiancai / git_guidline.md
Created October 16, 2012 05:53
git分支使用规范

分支管理

最少有三个长期分支

  • master: 用于生产环境部署
  • testing: 用于测试环境测试
  • dev: 用于日常开发

有一些临时分支

@wridgers
wridgers / .tmux.conf
Created February 7, 2012 16:05
tmux config file
# Make it use C-a, similar to screen..
unbind C-b
unbind l
set -g prefix C-a
bind-key C-a last-window
# Reload key
bind r source-file ~/.tmux.conf
set -g history-limit 1000
@hasssan
hasssan / php.snippets
Created July 12, 2011 10:32 — forked from aaroneaton/php.snippets
CodeIgniter PHP snippets for the VIM plugin SnipMate
# SnipMate is required to use snippets
# Download SnipMate: http://www.vim.org/scripts/script.php?script_id=2540
# Put this file in ~/.vim/snippets/ then restart vim
# This snippet file includes many useful snippets for CodeIgniter. Please feel free to fork and contribute!
snippet php
<?php
${1}
?>
snippet phpil
<?php ${1} ?>
anonymous
anonymous / Hexdecimals to Binary
Created November 1, 2010 19:43
It converts hexadecimals to binary but it takes out some zeroes. I was told to use strings on the binary but not sure how to use them on binary to get it to output the zeroes it has been cutting off.
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string hexaNumber,hexa,truebinaryNumber;
int strlength,i,decimalNumber=0,hx,binary,iterator=0,binaryNumber=0;