Skip to content

Instantly share code, notes, and snippets.

View rajibdpi's full-sized avatar
💻
Always try to discover something new

Rajib Ahmed rajibdpi

💻
Always try to discover something new
View GitHub Profile

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License

@rajibdpi
rajibdpi / 02-after.html
Last active November 27, 2017 06:44 — forked from mikeygee/01-before.html
truncate blog posts in jekyll
<!-- using the split filter -->
{% for post in site.posts limit:10 %}
<div class="post-preview">
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<span class="post-date">{{ post.date | date: "%B %d, %Y" }}</span>
{{ post.content | split:'<!--break-->' | first }}
{% if post.content contains '<!--break-->' %}
<a href="{{ post.url }}">read more</a>
{% endif %}
</div>
@rajibdpi
rajibdpi / jeykll-post-counter.liquid
Created November 30, 2017 20:09 — forked from Phlow/jeykll-post-counter.liquid
Counter: This code snippet just counts your jekyll posts and spits out the result
{% comment %}
*
* Counter: This include counts the your jekyll posts
*
{% endcomment %}{% assign counter = 1 %}{% for item in site.posts %}{% unless item.published == false %}{% assign counter=counter | plus:1 %}{% endunless %}{% endfor %}{{ counter }}
@rajibdpi
rajibdpi / subscribe-form.html
Created December 3, 2017 07:45 — forked from sharu725/subscribe-form.html
Jekyll Subscribe Form using Mailchimp
<!--
Before implementing this jekyll snippet make sure
1. you have signed up with Mailchimp.
2. you have created a list in Mailchimp.
3. you have defined the list in _config.yml,
for ex: "mailchimp-list: //redgadgets.us10.list-manage.com/subscribe/post?u=210acce5db69d3d4a04b0e25d&amp;id=08c6708f40"
-->
<form action="{{site.mailchimp-list}}" method="post" name="mc-embedded-subscribe-form" class="wj-contact-form validate" target="_blank" novalidate>
<div class="mc-field-group">
add_action( 'admin_menu', 'ms_mailchim_admin_menu', 99 );
function ms_mailchim_admin_menu() {
add_submenu_page( 'membership2', __( "Mailchimp Subscribe" ), __( "Mailchimp Subscribe" ), 'manage_options', 'ms-mailchimp-subsribe', 'ms_mailchim_exec' );
}
function ms_mailchim_exec() {
?>
<div class="wrap">
<form method="post">
<input type="text" name="list_id" placeholder="Mailchimp list id">
@rajibdpi
rajibdpi / jekyll-ubuntu.md
Created January 13, 2018 08:55 — forked from yancyn/jekyll-ubuntu.md
Setup Jekyll on Ubuntu 16.04

Ubuntu 16.04

$ sudo apt-get update
$ sudo apt-get install ruby ruby-dev make gcc
$ sudo gem install jekyll bundler

see source

Ubuntu 14.04

@rajibdpi
rajibdpi / wordpress-post-thumbnail-grid-style.css
Created February 4, 2018 05:45 — forked from matthiaspabst/wordpress-post-thumbnail-grid-style.css
WordPress page template for a post thumbnail grid
/* Post Thumbnail Grid */
.gridcontainer h2 a{color: #333; font-size: 13px;}
.gridcontainer .griditemleft{float: left; width: 150px; margin: 0 30px 20px 0;}
.gridcontainer .griditemright{float: left; width: 150px;}
.gridcontainer .postimage{margin: 0 0 5px 0;}
.gridcontainer .postimage-title {text-align: center;}
@rajibdpi
rajibdpi / sublimetext.txt
Last active October 15, 2022 09:12
Sublime Text Licence Key Build 3176
----- BEGIN LICENSE -----
sgbteam
Single User License
EA7E-1153259
8891CBB9 F1513E4F 1A3405C1 A865D53F
115F202E 7B91AB2D 0D2A40ED 352B269B
76E84F0B CD69BFC7 59F2DFEF E267328F
215652A3 E88F9D8F 4C38E3BA 5B2DAAE4
969624E7 DC9CD4D5 717FB40C 1B9738CF
20B3C4F1 E917B5B3 87C38D9C ACCE7DD8
@rajibdpi
rajibdpi / Open Source font type-notes.rst
Last active June 3, 2018 06:09 — forked from tomleo/type-notes.rst
Opensource Fonts

Serif

Libre Caslon:

http://www.impallari.com/projects/overview/libre-caslon-display-and-text

Domine:

http://www.google.com/fonts/specimen/Domine
@rajibdpi
rajibdpi / wp-pagination.php
Created July 15, 2018 03:50 — forked from stefthoen/wp-pagination.php
Adds pagination to WordPress without a plugin (taken from HTML5-Blank-WordPress-Theme)
// Add to functions.php
// Pagination for paged posts, Page 1, Page 2, Page 3, with Next and Previous Links, No plugin
function html5wp_pagination()
{
global $wp_query;
$big = 999999999;
echo paginate_links(array(
'base' => str_replace($big, '%#%', get_pagenum_link($big)),
'format' => '?paged=%#%',
'current' => max(1, get_query_var('paged')),