Skip to content

Instantly share code, notes, and snippets.

View palimadra's full-sized avatar

Pali Madra palimadra

View GitHub Profile
@palimadra
palimadra / alternate.html
Last active August 29, 2015 13:57
Tumblr starter theme.
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<html lang="{block:English}en{/block:English}{block:French}fr{/block:French}{block:German}de{/block:German}{block:Japanese}ja{/block:Japanese}{block:Italian}it{/block:Italian}{block:Spanish}es{/block:Spanish}{block:Polish}pl{/block:Polish}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>
{Title}
@palimadra
palimadra / cheatsheet-md-template
Last active August 29, 2015 14:06
Markdown template for cheatsheets
# Typography
## Headings
Headings from `h1` through `h6` are constructed with a `#` for each level:
``` markdown
# h1 Heading
## h2 Heading
### h3 Heading
@epicdaze
epicdaze / gist:1030943
Created June 17, 2011 06:11
#wordpress - remove wordpress version number #obfuscate #version
<!-- /* Remove version number from wordpress generated source and RSS feed.
http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/
*/ -->
<!-- /* remove this from header.php remove version from generated page source */ -->
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
<!-- /* or add this to functions.php to remove version from generated page source */ -->
<?php remove_action('wp_head', 'wp_generator'); ?>
@palimadra
palimadra / .htaccess
Created April 15, 2012 16:02 — forked from necolas/.htaccess
Simple, quick way to concatenate, minify, and version static files in a Wordpress theme
# Filename-based cache busting
# taken from https://github.com/h5bp/html5-boilerplate/
# This rewrites file names of the form `name.123456.js` to `name.js`
# so that the browser doesn't use the cached version when you have
# updated (but not manually renamed) the file.
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
@matiskay
matiskay / wp-snippets.php
Created September 20, 2011 20:39
Wordpress Snippets
<?php
// http://johnford.is/programmatically-pull-attachments-from-wordpress-posts/
// http://www.wprecipes.com/how-to-show-wordpress-post-attachments
// get all of the images attached to the current post
function _get_images($size = 'thumbnail') {
global $post;
$photos = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') );
@palimadra
palimadra / Dynamic text effect for Cryca.markdown
Created June 16, 2015 09:37
Dynamic text effect for Cryca

Dynamic text effect for Cryca

A variation of the dynamic text effect created for the website at cryca.com

A Pen by Pali Madra on CodePen.

License.

@kdbdallas
kdbdallas / Photoshop Colorize
Last active September 27, 2019 13:57
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.
@jwdeane
jwdeane / Change WP domain
Created August 9, 2010 14:20
Changed your Wordpress domain?
// Edit themes functions.php. Right after initial <?php line place the following:
update_option('siteurl','http://example.com/blog');
update_option('home','http://example.com/blog');
@smajda
smajda / aggregate-feed.php
Created October 7, 2009 16:41
Merge multiple RSS feeds with SimplePie
<?php
/* Merge multiple RSS feeds with SimplePie
*
* Just modify the path to SimplePie and
* modify the $feeds array with the feeds you want
*
* You should probably also change the channel title, link and description,
* plus I added a CC license you may not want
*
* Help from: http://www.webmaster-source.com/2007/08/06/merging-rss-feeds-with-simplepie/
@palimadra
palimadra / stackedit-markdown-cheat-sheet
Last active March 31, 2022 23:16
Cheat Sheet for Markdown on stackedit.io
<!---
Author: Pali Madra
URL: http://palimadra.tumblr.com
Description: Cheat sheet for markdown on stackedit.io at http://www.stackedit.io
Version: 1.0
Last updated: 10/26/2014
--->
<!--- HEADING --->
# Header 1 #