Skip to content

Instantly share code, notes, and snippets.

View Kreezag's full-sized avatar

Andrey Kuchuk Kreezag

View GitHub Profile
/**
* Sets a media query for the specified breakpoint
*
* Accepts:
* - $at-query: {String} Breakpoint variable (list found in variables.scss)
*
* Usage:
* .selector {
* @include at-query($medium) {
apt-get install -y httpie curl gcc git ssh gitk kdiff3 imagemagick
apt-get install -y ruby gem
sudo apt-get install -y ruby ruby-full gem
sudo gem install sass
sudo gem install compass
sudo gem install hpricot
sudo gem install premailer
@Kreezag
Kreezag / gist:3580d2ac9b0289b2ddce
Created July 13, 2015 12:23
Wordpress querty_posts
<?php if ( have_posts() ) : query_posts('p=1');
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<? endwhile; endif; wp_reset_query(); ?>