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
Option Explicit | |
Public Sub SplitCampersByCabin() | |
Dim lngLastRow As Long, lngIdx As Long, lngNextCol As Long, _ | |
lngCabinRow As Long | |
Dim wksCampers As Worksheet, wksCabins As Worksheet | |
Dim varCamper As Variant, varCabin As Variant | |
Dim dicCampers As Scripting.Dictionary, _ | |
dicCabins As Scripting.Dictionary | |
Dim strCamper As String, strCabin As String |
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
Option Explicit | |
Public Function CONVERT_YYYYMMDD_TO_DATE(rng As Range) As Date | |
Dim strText As String | |
'First we get the raw text from the Range (i.e. the Cell) | |
strText = rng.Text | |
'Then we can slice and dice the number, feeding it all into DateSerial | |
CONVERT_YYYYMMDD_TO_DATE = DateSerial(Left(strText, 4), _ | |
Mid(strText, 5, 2), _ |
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
Option Explicit | |
Public Sub CalculateResultsAndAddAsColumn() | |
Dim rngCategory As Range, rngResults As Range | |
Dim varCategory As Variant, varResults As Variant | |
Dim lngIdx As Long, lngLastRow As Long | |
Dim wksData As Worksheet | |
Dim strFirstLetter As String | |
'First things first: let's set up our basic variables |
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
class DateType | |
attr_reader :entry | |
attr_accessor :path, :error_state | |
def initialize(entry) | |
@entry = entry.to_s | |
@path = "" | |
@error_state = false | |
end | |
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
# A sample Gemfile | |
source "https://rubygems.org" | |
# gem "rails" | |
gem "rspec", :require => "spec" | |
gem "timecop" | |
gem "ocra" |
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
set backupdir=%HOMEPATH%/temp | |
set directory=%HOMEPATH%/temp |
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
# This configuration file contains the absolute path locations of all | |
# installed Rubies to be enhanced to work with the DevKit. This config | |
# file is generated by the 'ruby dk.rb init' step and may be modified | |
# before running the 'ruby dk.rb install' step. To include any installed | |
# Rubies that were not automagically discovered, simply add a line below | |
# the triple hyphens with the absolute path to the Ruby root directory. | |
# | |
# Example: | |
# | |
# --- |
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
" set guifont=Meslo\ LG\ M\ for\ Powerline:h9 " <~ set the font | |
set guifont=Powerline\ Consolas:h11 " <~ set the font | |
set encoding=utf-8 " <~ set the encoding | |
let g:airline_powerline_fonts=1 " <~ activate the font in airline |
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
set guifont=Meslo\ LG\ M\ for\ Powerline:h9 " <~ set the font | |
set encoding=utf-8 " <~ set the encoding | |
let g:airline_powerline_fonts=1 " <~ activate the font in airline |
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
source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/mswin.vim | |
behave mswin | |
set diffexpr=MyDiff() | |
function MyDiff() | |
let opt = '-a --binary ' | |
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif | |
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif | |
let arg1 = v:fname_in |