I hereby claim:
- I am finbarr on github.
- I am finbarr (https://keybase.io/finbarr) on keybase.
- I have a public key whose fingerprint is D6C7 EA10 D18F D363 1BA7 22E6 9941 D223 4F7C 7D49
To claim this, I am signing this object:
NSString *e164 = [self.phoneNumberField phoneNumberWithFormat:LTPhoneNumberFormatE164]; | |
NSString *formatted = [self.phoneNumberField phoneNumberWithFormat:LTPhoneNumberFormatNATIONAL]; |
- (void)countryPicker:(CountryPicker *)picker didSelectCountryWithName:(NSString *)name code:(NSString *)code | |
{ | |
// ... | |
self.localeField.text = [NSString stringWithFormat:@"%@ - %@", code, name]; | |
self.phoneNumberField = [[LTPhoneNumberField alloc] initWithFrame:self.phoneNumberField.frame regionCode:code]; | |
// ... | |
} |
// localeField is a UITextField | |
NSString *countryCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode]; | |
NSString *countryName = [CountryPicker countryNamesByCode][countryCode]; | |
self.localeField.inputView = self.countryPicker; | |
self.localeField.text = [NSString stringWithFormat:@"%@ - %@", countryCode, countryName]; | |
[self.countryPicker setSelectedCountryCode:countryCode]; |
def arraysort(array) | |
result = [] | |
array.each do |a| | |
if result[a].nil? | |
result[a] = [a] | |
else | |
result[a] << a | |
end | |
end | |
result.compact.flatten |
require "set" | |
def duplicates(array) | |
s = Set.new | |
array.each_with_object([]) { |a, d| (d << a) unless s.add?(a) } | |
end |
I hereby claim:
To claim this, I am signing this object:
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_delay": 0, | |
"bold_folder_labels": true, | |
"caret_style": "wide", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": |
alias ll="ls -al" | |
alias gch="git checkout" | |
alias gb="git branch" | |
alias gs="git status" | |
alias gp="git pull" | |
alias gf="git fetch" | |
alias gr="git rebase" | |
alias gl="git log" | |
alias gd="git diff" | |
alias gdo="git diff origin/master" |
install: --no-rdoc --no-ri | |
update: --no-rdoc --no-ri |
file_name = ARGV[0] | |
puts file_name | |
def rip_num(part) | |
part.split(" ").first.to_i | |
end | |
File.open(file_name) do |f| | |
insertions = 0 |