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:
I hereby claim:
To claim this, I am signing this object:
require "set" | |
def duplicates(array) | |
s = Set.new | |
array.each_with_object([]) { |a, d| (d << a) unless s.add?(a) } | |
end |
def arraysort(array) | |
result = [] | |
array.each do |a| | |
if result[a].nil? | |
result[a] = [a] | |
else | |
result[a] << a | |
end | |
end | |
result.compact.flatten |
// 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]; |
- (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]; | |
// ... | |
} |
NSString *e164 = [self.phoneNumberField phoneNumberWithFormat:LTPhoneNumberFormatE164]; | |
NSString *formatted = [self.phoneNumberField phoneNumberWithFormat:LTPhoneNumberFormatNATIONAL]; |
time_namelookup: %{time_namelookup}\n | |
time_connect: %{time_connect}\n | |
time_appconnect: %{time_appconnect}\n | |
time_pretransfer: %{time_pretransfer}\n | |
time_redirect: %{time_redirect}\n | |
time_starttransfer: %{time_starttransfer}\n | |
----------\n | |
time_total: %{time_total}\n |
Click Online Store > Themes > Click '…' on the right > Edit HTML/CSS > Add a new Template > Create a new template for ‘page’ called ‘shogun’
Change the text in the box to this only:
{{page.content}}
Hit save and that should fix your problem. Please let me know if you need any more help.
class Array | |
def bucketize(n) | |
return [] if (buckets = n.to_i) <= 0 | |
j = length / buckets.to_f | |
result = each_with_index.chunk { |_, i| (i / j).floor }.map { |_, v| v.map(&:first) } | |
result << [] until result.length == buckets | |
result | |
end | |
end |
stripe_transfer = Stripe::Transfer.create( | |
:amount => transaction_amount_in_cents, | |
:currency => 'usd', | |
:recipient => contractor.stripe_recipient_id, | |
:description => '' | |
) | |
#we store this after creating the transfer | |
stripe_tranfer.id |