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
| // ==UserScript== | |
| // @name Lepra comments raiting filter | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://*.leprosorium.ru/comments/* | |
| // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
| // @grant none | |
| // ==/UserScript== |
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
| interface InjectedIntlProps { | |
| intl: InjectedIntl; | |
| } | |
| interface InjectIntlConfig { | |
| intlPropName?: string; | |
| withRef?: boolean; | |
| } | |
| function injectIntl<P>(component: React.ComponentType<P & InjectedIntlProps>, options?: InjectIntlConfig): |
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 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 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
| 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 |