Skip to content

Instantly share code, notes, and snippets.

View KieranPeat's full-sized avatar

Kieran Peat KieranPeat

View GitHub Profile

Keybase proof

I hereby claim:

  • I am kieranpeat on github.
  • I am peatk (https://keybase.io/peatk) on keybase.
  • I have a public key ASDsDDU4svthj371SKIO3vzhkCa21ctN1kNT6CafMQvW4wo

To claim this, I am signing this object:

import org.apache.commons.io.IOUtils;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.*;
import org.apache.commons.lang.StringUtils;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import org.apache.commons.lang.StringUtils;
import java.util.Arrays;
import java.util.List;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
@KieranPeat
KieranPeat / jquery.fullscreenr.js
Created August 22, 2011 13:47 — forked from thebird/jquery.fullscreenr.js
Altered to allow for vertical alignment
(function($){
$.fn.fullscreenr = function(options) {
if(options.height === undefined) alert('Please supply the background image height, default values will now be used. These may be very inaccurate.');
if(options.width === undefined) alert('Please supply the background image width, default values will now be used. These may be very inaccurate.');
if(options.bgID === undefined) alert('Please supply the background image ID, default #bgimg will now be used.');
var defaults = { width: 1280, height: 1024, bgID: 'bgimg', align: 'middle' },
options = $.extend({}, defaults, options);
options.ratio = options.height / options.width;
$(document).ready(function() { $(options.bgID).fullscreenrResizer(options); });
$(window).bind("resize", function() { $(options.bgID).fullscreenrResizer(options); });