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
# | |
# description | |
# D_GNU_SOURCE is for GNU extension | |
# | |
all: project_name | |
clean: | |
rm -f exec_file | |
project_name: main.c |
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
require 'fileutils' | |
Dir.glob('/path_to_file_directory/*.txt').each do |f| | |
FileUtils.mv f, "#{File.dirname(f)}/#{File.basename(f,'.*')}.cpp" | |
end |
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
git config --global user.name "linus-young" | |
git config --global user.email "test@test.com" | |
git config --global color.ui true # 开启全部颜色效果 | |
# 常用命令alias | |
git config --global alias.cm commit | |
git config --global alias.st status | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ps push |
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
rails g migration AddColumnToTable column:type | |
rails g scaffold MyModel --no-stylesheets |