Skip to content

Instantly share code, notes, and snippets.

View juliuzfan's full-sized avatar

Julio Flores juliuzfan

View GitHub Profile
@juliuzfan
juliuzfan / dabblet.css
Last active June 16, 2020 19:58
Header Tab
/**
* Header Tab
*/
body {
background: #f06;
background: linear-gradient(45deg, #FFCA2B, #ff5722);
min-height: 100vh;
font:16px/1.5 Arial, sans-serif;
}
@juliuzfan
juliuzfan / changelog-gas-script.js
Created November 28, 2011 08:25
GAS Script to setup a change log Google Docs spreadsheet
function onInstall()
{
/*
* Setup the Change log spreadsheet
* (c) 2011,2012 Julio Flores <http://juliorfa.me>
* MIT license
*
* with attitude & love by @JulioRFA (Web Designer & Developer)
*/
var auto_increment_id_formula = '=ARRAYFORMULA( IF( B2:B = ""; ""; ROW(B2:B) - 1 ) )';
@juliuzfan
juliuzfan / loop-sticky-posts.php
Created November 28, 2011 00:56
Custom WP Query For Sticky Posts Only
<?php
/**
Custom Query for Sticky Posts only
----------------------------------
*/
$sticky = get_option( 'sticky_posts' );
$args = array(
'posts_per_page' => 2, // Number of sticky posts to get
'post__in' => $sticky,
'ignore_sticky_posts' => 1