This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-------------------------------------------------------------- | |
Normalised Greek small-caps | |
fixes erroneous behaviour of browsers that display accents on Greek small-caps. | |
usage example, don't be greedy: $('dt:lang(el), h1:lang(el), h2:lang(el), h3:lang(el), a:lang(el)').greek_small_caps(); | |
--------------------------------------------------------------*/ | |
(function($) { | |
if (!jQuery().greek_small_caps) { | |
$.fn.greek_small_caps = function() { | |
String.prototype.replaceArray = function(search, replace) { | |
var text = this; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-------------------------------------------------------------- | |
Draggable | |
alternative to jQuery UI’s draggable | |
based on comments from: http://css-tricks.com/snippets/jquery/draggable-without-jquery-ui/ | |
usage example: $('.post-thumbnail, article header').draggable(); | |
--------------------------------------------------------------*/ | |
(function($) { | |
if (!jQuery().draggable) { | |
$.fn.draggable = function() { | |
this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* raw utility to delete deprecated thumbnail files | |
* to move into a plugin at some point | |
*/ | |
// comment following line and move to WordPress root | |
if ( !defined('ABSPATH') ) die; | |
function files($base) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The object was to create a grading set of illusionist tiles. | |
Horizontal mouse movement sets hue. Vertical sets saturation. Scroll to increase/decrease tile count. | |
*/ | |
int sketchWidth = 600; | |
int sketchHeight = sketchWidth; | |
int grid = 6; //number of triangle columns and rows | |
int shapeWidth, shapeHeight; |
NewerOlder