Cloning a Git SVN Clone

by Thomas Aylott Tue, 22 Apr 2008 17:03:00 GMT

I’ve been trying to figure out a good way to make a publicly available git-svn repo on GitHub.com that I can clone and then keep up to date with both the original svn repo and the GitHub repo and commit everything into my own fork.

So, how do you go about creating a Git repo that can push and pull to and from both Git and Subversion?

Read more…

Posted in Git, Code, Tip, Workflow | 1 comment

My TextMate Bundles, Commands, Macros, etc...

by Thomas Aylott Sun, 05 Feb 2006 15:41:00 GMT

Ahhh TextMate, how I love thee.

This is just a quick post to share a couple of handy TextMate commands.

Balance Jr textmate thinggy

Balance Jr Textmate Macro

(?<=(<%@\s|<%#\s|<%=\s))[^%]*(?=\s%>)|(?<=<%\s)[^%]*(?=\s%>)|(?<=</)[^/>]*(?=>)|(?<=<)[^/>]*(?=/>)|(?<=<!--\s)[^->]*(?=\s-->)|\b\w+\b(?=\s*=)|\s\b\w+\b=\"[^\"]*\"|(?<=\\")[^\\"\n]*(?=\\")|(?<=')[^'\n]*(?=')|(?<=\[)[^\[\]]*(?=\])|(?<={)[^{}]*(?=})|(?<=<)[^<>\n]*(?=>)|(?<=[^/]>)[^><]*(?=</)|(?<!\d)\d+(?!=\d)|[@$!]\w+\b|(?<=/\*).*(?=\*/)|(?<=[\(,])[^\(\),]*(?=[\),])

You place your caret inside something and the macro will select everything in between enclosing characters. It’s kinda like the balance command, except it grabs everything INSIDE the characters, but not the characters themselves.

It works with:

[], {}, (), '', "", word="", <>, ><, $word, @word, /* word */, <% word %>, <%= word %>, <%# word %>, <%@ word %>, integers, comma separated values, and probably more, but I forget now.

If you want to select the paragraph text section of the following HTML, place your caret somewhere in the text and hit the macro. It’ll select everything between the > & < characters.


<p class="blah">
     paragraph text 
</p>

Here’s all the crazy stuff!

All these files are .tmbundle packages. I have them in my personal TextMate folder ~/Library/Application Support/TextMate/Bundles/. All my TextMate stuff is now being hosted in SVN at http://textmate.svn.subtlegradient.com/. Enjoy!

Back to a regular folder. Blaaarrgghhh!

These linked files are now ZIPs, yet again. But Safari will auto un-zip them for you to just double click on in your downloads panel.

That’s all. It’s been a pleasure, as always!

Posted in Screencast, Tip, Code, TextMate | 17 comments | no trackbacks

Get IE 5.5+ to support transparent PNGs using Microsoft-chow

by Thomas Aylott Wed, 30 Nov 2005 10:18:00 GMT

Get IE 5.5+ to support transparent PNGs using Microsoft-chow -- read more

There are two ways that i use to solve the transparent PNG support issue.

Before we get into those specific methods, we have to make sure only IE is getting fed Microsoft-chow.

Read the rest of the article for the specifics.

Read more…

Posted in Tip, CSS, Code | 4 comments | no trackbacks