This file contains 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; |
This file contains 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 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 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 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
This script has moved to https://github.com/Arty2/userstyles |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from email.header import Header | |
from email.mime.text import MIMEText | |
from getpass import getpass | |
from smtplib import SMTP_SSL | |
import sys | |
#edit the line below |
This file contains 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
/* | |
copy & paste hijacking for forcing credit with "Read more" and URL | |
antilogue: http://daringfireball.net/2010/05/tynt_copy_paste_jerks | |
*/ | |
function copypasta() { | |
var body_element = document.body; | |
var pagelink = ' Read more: '+window.location.href.split('#')[0]+''; | |
if (window.getSelection) { | |
var selection = window.getSelection(); | |
var copytext = selection.toString().replace(/\n/g, '<br />') + '<br /><br /><br />' + pagelink; |
This file contains 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
# Name : Toggle EndPoints | |
# Description : Provides a function to toggle EndPoints on/off | |
# Author : Heracles Papatheodorou | |
# Usage : Tools → Toggle EnPoints (hint: assign to keyboard shortcut) | |
# Date : 27.Jul.2004 | |
# Type : tool | |
# History: | |
# 1.0 (2013.04.07) - Initial version. | |
require 'sketchup.rb' |
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
</head> | |
<body> | |
<canvas id="canvas"></canvas> | |
<script> | |
/* |
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
</head> | |
<body> | |
<canvas id="canvas"></canvas> | |
<script> | |
var tile_w = 256; | |
var tile_h = 256; |
OlderNewer