git checkout master
git pull origin master
git branch <feature_branch>
git checkout <feature_branch>
<Make Code Changes>
git add .
git commit -m "Message for commit"
git push origin
| const std = @import("std"); | |
| const Stack = std.ArrayList(u8); | |
| const Operation = struct { from: u8, to: u8, number: u8 }; | |
| pub fn create_stacks(allocator: std.mem.Allocator, stack_count: u8, it: *std.mem.SplitBackwardsIterator(u8, .any)) ![]Stack { | |
| var stacks: []Stack = try allocator.alloc(Stack, stack_count); | |
| for (stacks, 0..) |_, i| { | |
| stacks[i] = Stack.init(allocator); |
| .::::::::::::::::: | |
| | K || | |
| | __ __ || | |
| | / \/ \ || | |
| | \ / || | |
| | \ / || | |
| | \ / || | |
| | \/ || | |
| | K || | |
| |_______________|/ |
git checkout master
git pull origin master
git branch <feature_branch>
git checkout <feature_branch>
<Make Code Changes>
git add .
git commit -m "Message for commit"
git push origin
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo -e "\e[01;33m*\e[01;31m" | |
| } | |
| function parse_git_branch { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/(git::\1$(parse_git_dirty))/" | |
| } | |
| parse_svn_branch() { | |
| parse_svn_url | sed -e 's#^'"$(parse_svn_repository_root)"'##g' | awk -F / '{print "(svn::"$1 "/" $2 ")"}' |
| # | |
| # config/application.rb | |
| # | |
| require 'active_record/connection_adapters/mysql2_adapter' | |
| module App | |
| class Application < Rails::Application | |
| ActiveRecord::ConnectionAdapters::Mysql2Adapter.emulate_booleans = false | |
| end | |
| end |