Skip to content

Instantly share code, notes, and snippets.

View sanjeevbeekeeper's full-sized avatar
🎯
Focusing

Sanjeev Beekeeper sanjeevbeekeeper

🎯
Focusing
View GitHub Profile
@sanjeevbeekeeper
sanjeevbeekeeper / grid-bg.css
Last active May 6, 2025 00:31
20x20 grid background using CSS
.grid-bg {
background-image: radial-gradient(#707070 1px, transparent 1px);
background-size: 20px 20px; /* Space between dots */
background-repeat: repeat;
height: 100vh;
}
@sanjeevbeekeeper
sanjeevbeekeeper / snippets.cson
Created September 13, 2017 06:10
WordPress Snippets for Atom
#
# WordPress
#
'.text.html.php':
# Head
'WordPress Head':
'prefix': 'wp-head'
'body': '<?php wp_head(); ?>'
# Footer
'WordPress Footer':
<?php
/* =================================================
ADMIN PAGE
==================================================== */
// ===== ADD PAGE
function setting_adminpage() {
// PARENT 1/2
add_menu_page('settings Theme options', 'Custom Page', 'manage_options', 'setting_parent_slug', 'setting_parent_page_function', 'dashicons-media-archive', 110);
@sanjeevbeekeeper
sanjeevbeekeeper / emmet.cson
Last active March 6, 2017 17:49
Handy emmet custom keymap for atom.io
'atom-text-editor:not([mini])':
# wrap with abbreviation
'ctrl-shift-a': 'emmet:wrap-with-abbreviation'
# expand abbreviation
'ctrl-alt-enter': 'emmet:expand-abbreviation'
# remove the html matching tag
'ctrl-shift-;': 'emmet:remove-tag'
// WordPress Default Classes
// Target the default menu items (ul li)
.menu {
padding-left: 0px;
border-bottom: 1px solid gray;
.menu-item-object-page {
margin-left: 0px;
margin: 10px;
display: inline-block;
list-style: none;
/* CONTAINER (parent) */
/* -webkit-flex, -moz-flex, -webkit-inline-flex, -moz-inline-flex */
display: flex;
display: inline-flex;
/* DIRECTION (for children, added to the parent) */
/* -webkit-flex-direction, -moz-flex-direction */
flex-direction: row;
flex-direction: row-reverse;
@sanjeevbeekeeper
sanjeevbeekeeper / web.config
Created November 7, 2016 06:30 — forked from jonahvsweb/web.config
How to Setup WordPress Permalinks on Windows IIS ======================================= Place this file into the base directory of your WordPress installation to allow permalinks (or "pretty URLs") on Windows IIS.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
@sanjeevbeekeeper
sanjeevbeekeeper / wp-query-ref.php
Created November 4, 2016 11:09 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
@sanjeevbeekeeper
sanjeevbeekeeper / index.php
Last active November 2, 2016 18:23
WordPress Template Hierarchy | BeekeeperDesignStudio
<!-- Header -->
<?php get_header(); ?>
<!-- File name -->
<p class="page_template">index.php</p>
<div class="row">
<div class="col-lg-9">
<!-- Starting the loop -->
<?php
jQuery 3.x
<!-- jQuery Core 3.1.1 -->
https://code.jquery.com/jquery-3.1.1.js
https://code.jquery.com/jquery-3.1.1.min.js
https://code.jquery.com/jquery-3.1.1.slim.js
https://code.jquery.com/jquery-3.1.1.slim.js
Bootstrap 3.3.7
<!-- Latest compiled and minified CSS -->
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css