Skip to content

Instantly share code, notes, and snippets.

View Rubel-hossain's full-sized avatar
🏠
Working from home

Rubel Hossain Rubel-hossain

🏠
Working from home
View GitHub Profile

Responsify - a breakpoint tester

A breakpoint tester for responsive websites.
Designed according to Material Design specs.

A Pen by Twixes on CodePen.

License.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Quick Start Pack</title>
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
@Rubel-hossain
Rubel-hossain / shortcode query post.php
Last active August 29, 2015 14:15
Query Post by shortcode
<?php
function post_list_shortcode($atts,$content){
extract($atts=shortcode_atts(array(
'type' => 'post',
),$atts) );
$q = new WP_Query(
array('posts_per_page' => '5', 'post_type' => $type)
@Rubel-hossain
Rubel-hossain / shortcode.php
Created February 8, 2015 17:12
Ideal Shortcode example
<?php
function button_shortcode($atts,$content){
extract($atts=shortcode_atts(array(
'type'=>!empty($type) ? $type:'success',
'link'=>'http://www.m.facebook.com',
'icon'=> empty($icon) ? 'heart': $icon ,
'content'=> !empty($content) ? $content : 'empty content here'
),$atts,'btn'));
@shahadat014
shahadat014 / wordpress code
Created January 26, 2015 10:39
wordpress shortcodes code
<?php
function wishlist_shortcode($atts){
extract( shortcode_atts( array(
'expand' => '',
), $atts, 'wishlist' ) );
$q = new WP_Query(
array('posts_per_page' => '4', 'post_type' => 'wishlist-items', 'meta_key' => 'order_number','orderby' => 'meta_value','order' => 'ASC')
);
@kylerush
kylerush / blog-loop.html
Created January 11, 2013 15:52
An example of a blog post loop in Jekyll.
{% for post in site.posts %}
<article class="{% if forloop.first %}first{% elsif forloop.last %}last{% else %}middle{% endif %}">
<div class="article-head">
<h2 class="title"><a href="/{{ post.url }}/" class="js-pjax">{{ post.title }}</a></h2>
<p class="date">{{ post.date | date: "%b %d, %Y" }}</p>
</div><!--/.article-head-->
<div class="article-content">
{{ post.long_description }}
<a href="/{{ post.url }}/" class="full-post-link js-pjax">Read more</a>
</div><!--/.article-content-->