Skip to content

Instantly share code, notes, and snippets.

View palimadra's full-sized avatar

Pali Madra palimadra

View GitHub Profile
@palimadra
palimadra / GiantUser.html
Created April 21, 2017 18:08 — forked from coneybeare/GiantUser.html
Sample HTML Signature Code
<style type="text/css">
a.link{margin:0;padding:0;border:none;text-decoration:none;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="format-detection" content="telephone=no">
<br />
<br />
Andhra Pradesh
Arunachal Pradesh
Assam
Bihar
Chhattisgarh
Goa
Gujarat
Haryana
Himachal Pradesh
Jammu and Kashmir
@palimadra
palimadra / city-list-india
Created January 30, 2017 10:24
List of cities in India for a drop down element in a form
Adilabad
Agra
Ahmedabad
Ahmednagar
Aizawl
Ajitgarh (Mohali)
Ajmer
Akola
Alappuzha
Aligarh
/*
Bootstrap 4 alpha class list
*/
.active
.alert
.alert-danger
.alert-dismissible
.alert-heading
.alert-info
.alert-link
@palimadra
palimadra / Photoshop Colorize
Created October 7, 2016 11:30 — forked from kdbdallas/Photoshop Colorize
What Photoshop's Colorize option in the Hue/Saturation adjustment window does
The Colorize option changes the nature of the Hue/Saturation control.
When checked, it removes the color from an image and overlays the image with a tint of a single hue and saturation.
Each pixel's luminosity remains unchanged (actually, it is changed, but very little).
With the Colorize option, the Hue and Saturation values are no longer relative numbers based on an offset from a starting point.
Instead, they are absolute numbers.
The Hue value ranges from 0° to 360° and represents an absolute position on the color wheel (0° and 360° are the same color; red)
The Saturation value ranges from 0% to 100%.
If Saturation is changed to 0%, color will be negated and the pixels will go gray.
Using Hue/Saturation to colorize an image is not the same as making a duo tone.
/*#region WebForms */
/* customized css for prettier forms in WordPress */
.WebForm
{
}
.WebForm h1, h2, h3, h4, h5
{
margin: 0px;
display: block !important; /* FF doing weird inlines on Hx tags */
}
@palimadra
palimadra / Google Blogger Social Meta Tags.html
Created January 6, 2016 09:14 — forked from milanaryal/Google Blogger Social Meta Tags.html
Google Blogger/BlogSpot Social Meta Tags for Facebook, Twitter, Google+, Pinterest [v1.0]
<!-- add the following code in the head tag -->
<head prefix='og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#'>
<!-- Share Image -->
<link href='YOUR_LOGO_IMAGE' rel='image_src'/>
<!-- Open Graph Meta Tags -->
<b:if cond='data:blog.pageType != &quot;index&quot;'>
<meta expr:content='data:blog.title' property='og:site_name'/>
@palimadra
palimadra / wp-simple-hook.php
Created August 21, 2015 09:30
An example of adding simple hook in WordPress
add_action('wp-head', 'my-custom-action');
function my-custom-action() {
echo 'My custom action triggers here - in the head section';
}
@palimadra
palimadra / simple-form-skeleton.html
Created August 21, 2015 09:15
HTML for a simple form in HTML5 and CSS3
<div class="wrap">
<h2>Staff Details</h2>
<form method="post" action="options.php">
<?php settings_fields( 'my-plugin-settings-group' ); ?>
<?php do_settings_sections( 'my-plugin-settings-group' ); ?>
<table class="form-table">
<tr valign="top">
<th scope="row">Accountant Name</th>
<td><input type="text" name="accountant_name" value="<?php echo esc_attr( get_option('accountant_name') ); ?>" /></td>
@palimadra
palimadra / simple-form-skeleton.html
Created August 21, 2015 09:15
HTML for a simple form in HTML5 and CSS3
<div class="wrap">
<h2>Staff Details</h2>
<form method="post" action="options.php">
<?php settings_fields( 'my-plugin-settings-group' ); ?>
<?php do_settings_sections( 'my-plugin-settings-group' ); ?>
<table class="form-table">
<tr valign="top">
<th scope="row">Accountant Name</th>
<td><input type="text" name="accountant_name" value="<?php echo esc_attr( get_option('accountant_name') ); ?>" /></td>