Andrew Dunn

Australia

Age: 22

Jul
9
comment How do you use String.substringWithRange? (or, how do Ranges work in Swift?)
This will be fixed in Swift 1.0 @NateCook. :) The reason the second one didn't work is because it is a composed character, made up of multiple code points.
Jul
9
comment How do you use String.substringWithRange? (or, how do Ranges work in Swift?)
@JanX2 Premature optimisation is the root of all evil.
Jul
7
comment Changing SetTimer resolution on Windows
Are you running an optimized build? You could be getting overhead
Jul
7
revised Changing SetTimer resolution on Windows
added 148 characters in body
Jul
7
comment Changing SetTimer resolution on Windows
It turns out SetTimer cannot be set for a period less than 10ms msdn.microsoft.com/en-us/library/windows/desktop/…
Jul
7
comment How does this code function?
@chris std::string uses char_traits<char>::compare which will always use the less than operator.
Jul
7
comment How does this code function?
More specifically, 'd' is represented by the number 100 and 's' by the number 115 in US-ASCII. Here's a complete chart: robelle.com/smugbook/ascii.html
Jul
7
answered How does this code function?
Jul
7
answered Changing SetTimer resolution on Windows
Jul
7
awarded Supporter
Jun
16
awarded Guru
May
9
awarded Good Answer
May
7
awarded Great Answer
May
4
awarded Yearling
Apr
29
comment How to replace four spaces with a tab in Sublime Text 2?
This answer is completely irrelevant to the question being asked. Please consider changing it to the correct answer or otherwise deleting your answer.
Apr
16
awarded Enlightened
Apr
4
awarded css
Mar
10
revised How to Get Element By Class in JavaScript?
further explanation, minor code formatting.
Feb
27
reviewed Reopen error: forward declaration of ‘struct classA’
Feb
27
awarded Custodian
1 2 3 4 5