GitHub Tip: Easily Sync Your Master to GitHub Pages

On the occasion that you’re working on a web-related project using GitHub, you may want to simply mirror your demo pages or entire branch over to the Github Pages for your project to make them web-accessible. An example case for this would be the development of a JavaScript tool that includes an “examples/” section. It would be most convenient to just let people browse that as a webpage from GitHub, keeping it up to date every time the branch changes. git, github, quicktip

→ Continue reading

Markdown Linking Services With the Google API

I no longer have any faith that any API will stick around all that long. Search APIs are becoming fewer and fewer. Google1 still offers the Ajax Search API, but it’s not convenient to use with System Services and such because it requires non-default libraries to work in Ruby and other scripting languages. It’s easy in PHP, though. It’s not my favorite language to use for local scripting, but it was the easiest solution to the problem. I think… markdownservices, php, service

→ Continue reading

Easy Command Line Github Flavored Markdown

I wrote a quick wrapper script for converting local Markdown files or raw text to HTML using Github Flavored Markdown. It uses the Github API, so there are no local dependencies (other than the gem, see below). It just requires an Internet connection. Syntax highlighting and Github stylesheets are included in the output. Any syntax recognized by Github is converted, including line breaks and fenced code. github, markdown, scripting

→ Continue reading