Skip to content

Instantly share code, notes, and snippets.

@clijiac
clijiac / prepare-commit-msg.sh
Created March 20, 2019 01:28
prepare-commit-msg
#!/bin/sh
#
# An example hook script to prepare the commit log message.
# Called by "git commit" with the name of the file that has the
# commit message, followed by the description of the commit
# message's source. The hook's purpose is to edit the commit
# message file. If the hook fails with a non-zero status,
# the commit is aborted.
#
# To enable this hook, rename this file to "prepare-commit-msg".
@clijiac
clijiac / markdown
Created October 18, 2013 10:00
Markdown
Hi All:
In this mail .i want to share something about the **Markdown** .
Markdown is a lightweight markup language.Allowing people “to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML)”
* In our company.because we use mail to communicate with each other.especially the review issue,when we reply to review comments.use markdown may be a good choice to make our mail more clearly.
* we can use markdown to generate html code and paste into the email.we mainly will use the syntax is the Blockquotes (>) and code (').
----------
## Blockquotes ##
@clijiac
clijiac / Cpp.sublime-build
Created May 27, 2012 14:44
A simple C++ builder for Sublime Text 2. (use cl)
{
"cmd": ["g++ -Wall ${file} -o ${file_base_name} && ./${file_base_name}"], "working_dir": "${file_path}",
"selector": "source.c++",
"shell": true,
"windows":
{
"cmd": ["$packages\\User\\buildC.bat", "$file", "${file/\\.cpp/\\.exe/}"],
"working_dir": "${file_path}",
@clijiac
clijiac / C++.sublime-build
Created May 27, 2012 13:11
Getting Sublime Text to build a C++ file.
{
"cmd": ["g++", "$file", "-o", "$file_base_name", "-I/usr/local/include"],
"selector": "source.c++",
"windows":
{
"cmd": ["cl", "/Fo${file_path}", "/O2", "$file"]
}
}