I hereby claim:
- I am ronnyhaase on github.
- I am ronnyhaase (https://keybase.io/ronnyhaase) on keybase.
- I have a public key ASCCjZFIBM3087qvg29FW789_RmpWB9KSQXkpezRLWKJjwo
To claim this, I am signing this object:
/** | |
* My Logo Animation - Pure CSS (unfinished) | |
* View in dabblet: http://dabblet.com/gist/2693201 | |
*/ | |
* { | |
box-sizing: border-box; | |
} | |
html { | |
background: #e2e2e2 url(http://subtlepatterns.com/patterns/wood_pattern.png); |
/** | |
* Returns formatted time depending on the clock (e.g. 00:00 / 12:00am) | |
* @param {number} hour - The hour of the day (0-24) | |
* @param {number} minute - The minute of the the hour (0-59) | |
* @param {string} clock - Either "12h" or "24h" | |
* @returns The time as a well formated string or false in case of an error | |
*/ | |
function formatTime(hour, minute, clock) { | |
( minute < 10 ) | |
? minute = '0' + minute |
function isRetina() { | |
// | |
// The easy way, a handy little property in the global scope | |
// | |
if ( 'devicePixelRatio' in window ) | |
return window.devicePixelRatio >= 1.92; | |
// | |
// The hard way, via Media Queries | |
// |
function isAtContainerBottom(el) { | |
var | |
$window = $(window), | |
$el = $(el), | |
viewTop = $window.scrollTop(), | |
viewBottom = (viewTop + $window.height()), | |
containerBottom = Math.floor( $el.offset().top + $el.height() ), | |
// amount of pre-bottom space to take into account | |
scrollBuffer = 150; |
function isString(obj) { | |
return Object.prototype.toString.call(obj) === "[object String]"; | |
} |
jQuery.each(['put', 'delete', 'options'], function(i, method) { | |
jQuery[method] = function(url, data, callback, type) { | |
// Shift arguments if data argument was omitted | |
if ( jQuery.isFunction(data) ) { | |
type = type || callback; | |
callback = data; | |
data = undefined; | |
} | |
// The url can be an options object (which then must have .url) |
function toggleEvent(element, event, bubbles, cancelable) { | |
var evType, | |
ev; | |
if ( bubbles !== false ) bubbles = true; | |
if ( cancelable !== false ) cancelable = true; | |
// Good browser | |
if ( element.dispatchEvent !== undefined ) { | |
evType = typeof Event; |
// Passes it's width and height to it's children | |
// | |
// Does *not* care for resize, since this event is only fired by root element. | |
// Could either listen to itself, or get notified by a provider to reduce | |
// listeners | |
class DimensionPasser extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { parentWidth: 0, parentHeight: 0 } |
I hereby claim:
To claim this, I am signing this object:
const collectionAddress = "HXbJbA5CEzJhYoMH1kmiDGHwZFZyJMGqDXvXqHGQNenW"; | |
const myself = "rnywTUFMTv9KbMoMXYwHKkeYjHBwffnAh9RVE8YkG1d"; | |
(async function main() { | |
const headers = new Headers(); | |
headers.append("x-api-key", "<Shyft API Key>"); | |
const requestOptions = { | |
method: "GET", | |
headers, |