I hereby claim:
- I am rossharper on github.
- I am rossharper (https://keybase.io/rossharper) on keybase.
- I have a public key ASB7SOI_OLbTEDcIZ2gsKHfa0FSXCj9eMt5SHtCN_tBxiwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| @RunWith(Parameterized::class) | |
| class KotlinTest(val paramOne: Int, val paramTwo: String) { | |
| companion object { | |
| @JvmStatic | |
| @Parameterized.Parameters | |
| fun data() : Collection<Array<Any>> { | |
| return listOf( | |
| arrayOf(1, "I"), // First test: (paramOne = 1, paramTwo = "I") | |
| arrayOf(1999, "MCMXCIX") // Second test: (paramOne = 1999, paramTwo = "MCMXCIX") |
| class C { | |
| companion object { | |
| @JvmStatic | |
| fun foo() { | |
| } | |
| } | |
| } |
| @RunWith(Parameterized.class) | |
| public class JavaTest { | |
| private final int paramOne; | |
| private final String paramTwo; | |
| @Parameterized.Parameters | |
| public static List<Object[]> data() { | |
| return Arrays.asList(new Object[][] { | |
| {1, "I"}, // First test: (paramOne = 1, paramTwo = "I") | |
| {1999, "MCMXCIX"} // Second test: (paramOne = 1999, paramTwo = "MCMXCIX") |
| class RomanNumeralGeneratorTest { | |
| private var generator: RomanNumeralGenerator = RomanNumeralGenerator() | |
| @Test | |
| fun shouldReturnIfor1() { | |
| assertThat(generator.arabicToRoman(1), equalTo("I")); | |
| } | |
| @Test | |
| fun shouldReturnIIfor2() { |
| <?php | |
| function rh_article_image() | |
| { | |
| // If there is an image attached to the post... | |
| if(has_post_thumbnail()) | |
| { | |
| // .. get its uri and echo it | |
| $imgarr = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full', false ); | |
| echo $imgarr[0]; | |
| } |
| .pinterestbutton { | |
| float: left; | |
| margin: 0px 10px 0px 0px; | |
| } |
| <?php | |
| function register_sharing_scripts() | |
| { | |
| if( is_single() || is_home() ) | |
| { | |
| wp_enqueue_script('twitter-share', 'http://platform.twitter.com/widgets.js', null, null, true); | |
| wp_enqueue_script('facebook-share', 'http://static.ak.fbcdn.net/connect.php/js/FB.Share', null, null, true); | |
| wp_enqueue_script('google-plusone', 'https://apis.google.com/js/plusone.js', array(), null, true); | |
| wp_enqueue_script('pinterest', 'http://assets.pinterest.com/js/pinit.js', array(), null, true); | |
| } |
| .twitterbutton, | |
| .googleplusonebutton, | |
| .facebookbutton { | |
| float: left; | |
| margin: 0px 10px 0px 0px; | |
| } | |
| .facebookbutton { | |
| padding: 1px 0px 0px 0px; | |
| } |