Skip to content

Instantly share code, notes, and snippets.

View Iamronan's full-sized avatar

Ronan Vallelly Iamronan

View GitHub Profile
equalheight = function(container){
var currentTallest = 0,
currentRowStart = 0,
rowDivs = new Array(),
$el,
topPosition = 0;
$(container).each(function() {
@Iamronan
Iamronan / Gulpfile.js
Created March 9, 2016 11:56 — forked from DESIGNfromWITHIN/Gulpfile.js
Gulpfile.js example Uses browser-sync, node-neat, gulp and gulp-sass
/*
Gulpfile.js file for the tutorial:
Using Gulp, SASS and Browser-Sync for your front end web development - DESIGNfromWITHIN
http://designfromwithin.com/blog/gulp-sass-browser-sync-front-end-dev
Steps:
1. Install gulp globally:
npm install --global gulp
@Iamronan
Iamronan / selector_example.css
Created January 19, 2016 12:39
Selector Example using :after
[class*='close-'] {
color: #777;
font: 14px/100% arial, sans-serif;
position: absolute;
right: 5px;
text-decoration: none;
text-shadow: 0 1px 0 #fff;
@Iamronan
Iamronan / wp_query.php
Created January 15, 2016 09:15
Wordpress Custom Post Query
<?php
$args = array(
'post_type' => 'products',
'post_status' => 'publish',
'posts_per_page' => '10'
);
$products_loop = new WP_Query( $args );
if ( $products_loop->have_posts() ) :
while ( $products_loop->have_posts() ) : $products_loop->the_post();
// Set variables
@Iamronan
Iamronan / gist:91af599bc7273f613bea
Created January 13, 2016 12:37
Custom Wordpress Loop With Pagination
<?php
/*
Template Name: Test Template Page
*/
?>
<?php get_header(); ?>
<!-- begin content -->
<div id="content">
<!-- begin container -->
<div class="container">
.button
{
position: absolute;
overflow: hidden;
top:0; right:0; bottom:0; left:0;
width: 220px;
height:30px;
margin: 5em auto;
padding: 20px 0;
text-align: center;
@Iamronan
Iamronan / bem.css
Created November 22, 2015 16:14
BEM example
.person {}
.person__head {}
.person--tall {}
@Iamronan
Iamronan / tilting.css
Created November 22, 2015 16:13
Tilting Example
/*------------------------------------*\
#A-SECTION
\*------------------------------------*/
.selector {}
@Iamronan
Iamronan / contents.css
Created November 22, 2015 16:12
CSS Table Contents Example
/**
* CONTENTS
*
* SETTINGS
* Global...............Globally-available variables and config.
*
* TOOLS
* Mixins...............Useful mixins.
*
* GENERIC
@Iamronan
Iamronan / css_declaration.css
Created August 20, 2015 20:13
css declaration
.declaration-order {
/* Positioning */
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 100;
/* Box-model */