JayBachatero.com

Komodo (Edit) Abbreviations

Recently the Komodo (Edit) developers added a new feature to Komodo 5.1, that feature is abbreviations.  The abbreviations feature allow you to quickly replace certain keywords with snippets of code by just pressing CTRL + T (or your key of preference).  This can be extremely useful.  I decided to create an abbreviation library for CodeIgniter.

Let’s say I type cicontroller and press CTRL + T, that will be replaced with:

1
2
3
4
5
6
7
8
9
10
11
12
class MyController extends Controller
{
	public function __construct()
	{
		parent::Controller();
	}
 
	public function index()
	{
 
	}
}

MyController is highlighted by default for easy replacing.

Here is my current library.  I’ll update it as I add more items.

CodeIgniter Library

Simple Flat File Image Gallery

I did this for a co-worker. It’s a small script that scans a given directory for images and displays the html resized version as a thumbnail with a link to the full image. It’s not fully done though. I didn’t finish adding support for pages since it was something simple and did it while I had some free time at work. Maybe it may be of some use to someone.

(more…)

  • 1 Comment
  • Filed under: PHP Snippets
  • Hex-to-Numeric Entities Converter

    At work I get files sometimes with hexadecimal entities but the problem is that we use numeric entities. I decided to write a simple script that will search the file for hex entities and convert them to numeric one. This is intended to be used with Komodo Edit or via the command line.

    (more…)

    PhotoStream

      DSC037302008121914315420081219185004200812191852022008121918521620081219185236

    Calendar

    February 2012
    S M T W T F S
    « Nov    
     1234
    567891011
    12131415161718
    19202122232425
    26272829  

    Google Ads