- Working with Branches
- Creating and applying patches
- Set up your project to be shared
- Tagging the repo
- Using Vim Fugitive
- Have Git Remember Your UserName
- Update all submodules with:
git submodule foreach 'git pull'
This file contains hidden or 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
Select e.EncounterNo, e.EncntrStartDate, EncntrType, EncntrClass, IpOpInd | |
From Encounters as e | |
Left Outer Join #valid_encounters as ve on e.EncntrOwnerId = ve.EncntrOwnerId | |
Where e.EncntrStartDate >= '1/1/2000' and e.EncntrStartDate < '1/1/2010' | |
AND ve.EncntrOwnerId is null |
This file contains hidden or 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
#!/usr/bin/ruby | |
require 'net/smtp' | |
def send_mail(options = {}) | |
begin | |
puts "Assembling mail..." | |
options = { | |
:smtp_server => '555.55.55.555', | |
:from => '[email protected]', | |
:to => '[email protected]', |
This file contains hidden or 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
#!/usr/bin/env ruby -wKU | |
require "rexml/document" | |
require 'FileUtils' | |
include REXML | |
# Update the xml | |
Dir.glob( "./*.bafxml" ) do |batch_file| | |
puts batch_file.to_s | |
doc = REXML::Document.new File.new( batch_file, 'r' ) |
This file contains hidden or 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
@echo off | |
IF EXIST c:\ruby18 GOTO switch_19 | |
IF EXIST c:\ruby19 GOTO switch_18 | |
echo No alternate ruby environment found. | |
GOTO print_version | |
:switch_19 | |
echo Switching to Ruby 1.8... | |
rename c:\ruby ruby19 |
This file contains hidden or 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
#!/usr/bin/env ruby -wKU | |
output = File.new( 'processed.yml', 'w' ) | |
(1..85).each do |number| | |
file_name = "batch_acquire_results_#{number}.log" | |
puts "Reading #{file_name}" | |
input = File.new( file_name, 'r' ) | |
output << "#{file_name}\n" | |
input.each_line do |line| |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'RedCloth' | |
require 'net/ssh' | |
require 'net/scp' | |
host_name = 'host_name' | |
username = 'user_name' | |
password = 'password' |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'coderay' | |
require 'win32/clipboard' | |
require 'htmlclipboard.rb' | |
include Win32 | |
# gather the file information | |
code_file_name = ARGV[0] |
This file contains hidden or 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
#!/usr/bin/env ruby -wKU | |
require "FileUtils" | |
puts "#{Time.now} - Getting documents that were proccessd." | |
docs = File.new 'document_list.txt', 'w' | |
Dir.glob( '*.log' ) do |log_file| | |
puts " Reading #{log_file}" | |
docs << "#{log_file}\n" |
This file contains hidden or 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
namespace 'rails' do | |
desc 'Renames the current app' | |
task 'rename' do | |
# Get the new name | |
new_name = ENV["NEW_NAME"].capitalize || nil | |
if new_name.nil? | |
puts "\nYou must pass in a new name" | |
exit | |
end | |