Skip to content

Instantly share code, notes, and snippets.

@signsi
signsi / must-haves.txt
Last active October 2, 2017 08:48
MUST-HAVES
SDKMAN! (The Software Development Kit Manager)
Atom
https://robomongo.org
Termius
@signsi
signsi / loop.php
Created August 24, 2017 08:33
[Show content of static blog page] #php #wordpress
<?php
global $post;
$page_for_posts_id = get_option( 'page_for_posts' );
if ( $page_for_posts_id ) :
$post = get_page( $page_for_posts_id );
setup_postdata( $post );
?>
<div id="post-<?php the_ID(); ?>">
<header>
<h1><?php the_title(); ?></h1>
@signsi
signsi / vertical.scss
Last active October 2, 2017 08:49
[Vertical Centering] #css #layout
position: relative;
margin-top: 50%;
transform: translateY(-50%);
/* Mixin --> not tested */
@mixin vertical-align($position: relative) {
position: $position;
top: 50%;
-webkit-transform: translateY(-50%);