Skip to content

Instantly share code, notes, and snippets.


Vladimir Simović Perun

View GitHub Profile
kirstenschelper / sharpen-images.php
Last active Oct 3, 2017
Sharpen small images sizes generated by WP
View sharpen-images.php
// Zu diesem Code gibt es einen Artikel im Blog
function ks_sharpen_resized_files( $resized_file ) {
$image = imagecreatefromstring( file_get_contents( $resized_file ) );
if ( !is_resource( $image ) )
return new WP_Error( 'error_loading_image', $image, $file );
lukehedger / browserBorder.css
Created Jan 22, 2014
Border around browser viewport - with scrollbars inside
View browserBorder.css
.page-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 700; /* must be the higher than all other elements */
overflow: auto; /* moves scrollbars inside border */
background: #fff;
border: 5px solid #ff9900;
jonschlinkert /
Last active Nov 18, 2020
A better markdown cheatsheet.
don1138 / font-stacks.css
Last active Nov 4, 2020
CSS Modern Font Stacks
View font-stacks.css
/* Modern Font Stacks */
/* System */
font-family: system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
/* Times New Roman-based serif */
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;
/* A modern Georgia-based serif */
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
You can’t perform that action at this time.