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
function hex2rgb($hex) { | |
$hex = str_replace("#", "", $hex); | |
if(strlen($hex) == 3) { | |
$r = hexdec(substr($hex,0,1).substr($hex,0,1)); | |
$g = hexdec(substr($hex,1,1).substr($hex,1,1)); | |
$b = hexdec(substr($hex,2,1).substr($hex,2,1)); | |
} else { | |
$r = hexdec(substr($hex,0,2)); | |
$g = hexdec(substr($hex,2,2)); |
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
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
BBEDIT REGULAR EXPRESSION GUIDE MODIFIED 2013-03-27 : 13:08 | |
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
NOTES: | |
The PCRE (Perl Compatible Regular Expressions) engine is what BBEdit uses. | |
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete. |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
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
(* | |
Date: 16-12-15 | |
Developer: codingChewie | |
Purpose: Takes archives and creates folder archive and moves files into it. | |
Version: 1.0 | |
Name: zip-to-folder.scpt | |
Site: http://programmingmonkeys.com/ | |
*) | |
on displayMessage(theMessage, scriptTitle) |
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
(* | |
Date: 16-12-14 | |
Developer: codingChewie | |
Purpose: Takes filenames with whitespace and replaces with underscore in a directory | |
Version: 1.0 | |
Name: no-whitespace-files.scpt | |
Site: http://programmingmonkeys.com/ | |
*) | |
on no_whitespace(theFolder, scriptTitle) |
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
(* | |
Date: 16-10-21 | |
Developer: codingChewie | |
Purpose: Takes a minified JSON file and un-minifies it | |
Version: 1.0 | |
Name: json-unminify.scpt | |
Site: http://programmingmonkeys.com/ | |
*) | |
tell application "Finder" |
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
(* | |
Date: 16-12-21 | |
Developer: codingChewie | |
Purpose: Color Labels images to help identify the color profile. | |
Version: 1.1 | |
Name: image-profile.scpt | |
Blog: https://programmingmonkeys.com/ | |
*) | |
property dialogTitle : "Image Profiler" |
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
# Date: 16-02-09 | |
# Developer: codingChewie | |
# Purpose: Convert TIF images to JPG and move TIFs into a directory | |
# Version: 1.0 | |
# Name: tif-to-jpg.sh | |
# Site: http://programmingmonkeys.com/ | |
WORKING="" | |
TIFFOLDER="tif" |
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
-- Find and replace a single word in an opened BBEdit document | |
tell application "BBEdit" | |
make new document | |
-- Add some text to the document | |
set text of front document to "Bacon Ipsum" | |
-- Find and replace | |
set every word of front document where it = "Bacon" to "Steak" | |
end tell |
OlderNewer