Skip to content

Instantly share code, notes, and snippets.

View palimadra's full-sized avatar

Pali Madra palimadra

View GitHub Profile
@palimadra
palimadra / custom.css
Created March 27, 2012 13:05 — forked from mattonomics/custom.css
Thesis Skin Starter Template - Basic
/*---:[ body ]:---*/
body.custom { background: #000; }
@palimadra
palimadra / css3nameplate.html
Created April 4, 2012 08:13
css3 nameplate
<DOCTYPE html>
<html>
<head>
<title>nameplate</title>
</head>
<style>
#angle {
width: 150px;
height: 150px;
background: #626262;
@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
@palimadra
palimadra / gist:3184355
Created July 26, 2012 20:37 — 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
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@palimadra
palimadra / blackandwhiteimages.php
Created August 2, 2012 18:43
Generate B + W images in WordPress
<?php
add_image_size('thumbnail-bw', 400, 0, false);
add_filter('wp_generate_attachment_metadata','bw_images_filter');
function bw_images_filter($meta) {
$file = wp_upload_dir();
$file = trailingslashit($file['path']).$meta['sizes']['thumbnail-bw']['file'];
list($orig_w, $orig_h, $orig_type) = @getimagesize($file);
$image = wp_load_image($file);
imagefilter($image, IMG_FILTER_GRAYSCALE);
@palimadra
palimadra / meta-tags.md
Created March 22, 2013 10:58 — forked from kevinSuttle/meta-tags.md
Basic HTML meta tags that can be used

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
<?php # -*- coding: utf-8 -*-
/*
Plugin Name: All Actions List
Description: Lists all actions run during one request.
Version: 1.0
Required: 3.1
Author: Thomas Scholz
Author URI: http://toscho.de
License: GPL
*/
<!--
http://www.quotes.uk.com/web-design/meta-tags.php
Last updated: Wednesday, 22nd May 2013
-->
## Technical Formatting Meta Tags
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta http-equiv="content-language" content="en">
<meta http-equiv="content-language" content="en-gb">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>SAMPLE</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<!-- CSS -->
<link rel="stylesheet" href="style.css" type="text/css" media="screen" charset="utf-8">
<!doctype html>
<html>
<head>
<title>HTML TEST: <filled></title>
<meta description="0.1">
<meta author="Vedran Jaic">
</head>
<body>
<a href="#">Lorem ipsum dolor sit amet.</a>
<abbr></abbr>