Skip to content

Instantly share code, notes, and snippets.

@dionysia
dionysia / wcla12-javascript.php
Created September 15, 2012 18:11
WCLA12 Javascript Presentation Code
<?php
/*********************************************************
//
// Code corresponding to WCLA12 JavaScript Presentation
// http://www.slideshare.net/jeffreyzinn/wcla12-javascript
//
/*********************************************************/
// "DO NOT" 1: "DO NOT" add javascripts directly to a header, template or other file
@dionysia
dionysia / gist:3205822
Created July 30, 2012 09:19 — 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(
@dionysia
dionysia / .gitignore
Created July 30, 2012 09:17 — forked from redoPop/.gitignore
Template .gitignore file for WordPress projects
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@dionysia
dionysia / clients.md
Created July 30, 2012 09:15 — forked from defunkt/clients.md
A list of Gist clients.

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

@dionysia
dionysia / CustomWidgetFile.php
Created July 30, 2012 09:14 — forked from jonathonbyrdziak/CustomWidgetFile.php
EMPTY WIDGET Plugin code to create a single widget in wordpress.
<?php
/**
* Duplicate this file as many times as you would like, just be sure to change the
* Empty_Widget class name to a custom name of your choice. Have fun! redrokk.com
*
* Plugin Name: Empty Widget
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Contact_RedRokk_Widget keyword to rebrand this class for your needs.
* Author: RedRokk Interactive Media
* Version: 1.0.0
* Author URI: http://www.redrokk.com
@dionysia
dionysia / growImage.js
Created July 30, 2012 09:11 — forked from hengkiardo/growImage.js
Grow Image on Hover
function growImage() {
$('a.idea-link').each(function () {
var oheight = $(this).children(0).height();
var owidth = $(this).children(0).width();
var nheight = (oheight + (oheight * 0.25));
var nwidth = (owidth + (owidth * 0.25));
var top = ((oheight - nheight) / 2);
var left = ((owidth - nwidth) / 2);
$(this).mouseenter(function () {
$(this).css('z-index', '2').children(0).css('z-index', '3').stop().animate({