Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timmse
timmse / index.html
Last active December 9, 2020 22:41
Clone images + Vibrant.js color from image
<div class="img-wrapper d-flex align-items-center">
<div class="color-block-vibrant is-masked"></div>
<div class="color-block is-masked"></div>
<div class="img-holder d-flex justify-content-end">
<img crossOrigin="" class="img-fluid img-holder-img" src="https://i.imgur.com/QOLatS7.png" alt="">
</div>
<!--
<div class="img-holder d-flex justify-content-center">
@timmse
timmse / Tribe Events FB Import FIX
Created September 15, 2014 09:45
Tribe Events Facebook Import Image *FIX* / add to functions.php (http://tri.be/support/forums/topic/facebook-events-doesnt-import-event-photo/); Fixes image import
add_filter( 'tribe_fb_event_img', 'fb_import_image_ext_fix' );
function fb_import_image_ext_fix( $event_picture ) {
if ( ! is_array( $event_picture ) ) return $event_picture;
if ( ! isset( $event_picture['url'] ) ) return $event_picture;
$length = strlen( $event_picture['url'] );
$query_starts = strpos( $event_picture['url'], '?' );
if ( false === $query_starts ) return $event_picture;
@timmse
timmse / flatuicolors.com rgba variables
Created October 17, 2013 09:31
flatuicolors.com rgba colors as compass variables
/* Greys */
$clouds: rgba(236, 240, 241,1.0);
$concrete: rgba(149, 165, 166,1.0);
$silver: rgba(189, 195, 199,1.0);
$asbestos: rgba(127, 140, 141,1.0);
/* Greens */
$turquoise: rgba(26, 188, 156,1.0);
$emerald: rgba(46, 204, 113,1.0);
$nephritis: rgba(39, 174, 96,1.0);