This file contains 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
interface InjectedIntlProps { | |
intl: InjectedIntl; | |
} | |
interface InjectIntlConfig { | |
intlPropName?: string; | |
withRef?: boolean; | |
} | |
function injectIntl<P>(component: React.ComponentType<P & InjectedIntlProps>, options?: InjectIntlConfig): |
This file contains 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 Example | |
def initialize(name) | |
@name = name | |
end | |
def test_equal_private(ex) | |
self.private_property == ex.private_property | |
end | |
def test_equal_protected(ex) |
This file contains 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
def ruby_loop | |
yield while true | |
end | |
def native_loop_test | |
time = Time.now | |
n = 0 | |
loop do | |
n = n + 1 | |
break if Time.now - time > 5 |