Skip to main content

Tag: javascript

Mozilla's TogetherJS in a bookmarklet

Mozilla recently introduced TogetherJS, a succession of their TowTruck service. Being that it is so similar to TowTruck, I went ahead and made a bookmarklet for it.

Drag the bookmarklet below onto your bookmarks bar, and tell your collaborators to do the same. When you're on a page you want …

Continue reading

Truck It!: Mozilla TowTruck in a bookmarklet

Mozilla Labs has this really nifty, Javascript-based collaboration utility, ~~TowTruck~~, which allows real-time web editing collaboration in the browser. It's got a lot of nifty features I won't get into in this post; sufficed to say, it's pretty frickin' sweet. What I did not find to be as frickin' sweet …

Continue reading

scrollFollow: An auto-scrolling extender for knockout.js

With the following knockout.js extender, you can tie an observable array to a scrollable HTML element. When the array is updated, the element will keep scrolling to the bottom. It's smart enough to realize if the user has scrolled up, as well, and will not interrupt them. I've found …

Continue reading

Javascript document.write alternative

When a script is loaded synchronously, its element's position in the DOM can be determined. With this information, the <script> element can act as a pivot point for inserting dynamic content. This eliminates the need for document.write, a function which wreaks havoc where AJAX is involved (and flies in …

Continue reading

WordPress plugin minify Makefile

While working on my first commercial WordPress plugin, the need for build automation finally struck me. The environments in which I do my most development are all driven by Linux, and so I wanted to use a tried, true, and ubiquitous build automation mechanism to fulfill my need. As such …

Continue reading

JavaScript Challenge #2 (Whac-A-Moo)

Though I am not a proponent of the MooTools JavaScript framework, their blog is an interesting resource that I enjoy reading. Not only is it packed with sensible practices and interesting insights, but they have recently begun posting JavaScript challenges where developers are tasked with building whatever system is presented …

Continue reading

Add password maintenance feature to cgit with PHP

Have you ever wanted to have a nifty, browser-driven password maintenance feature in your htpasswd-secured cgit site? I've been meaning to build this for a while—and I finally did it. Granted, this was not a difficult task, and I'm not expecting to bask in any glory for completing …

Continue reading

Add threaded discussions to cgit with disqus

While it provides an efficient, organized web front-end for your personal git repositories, the cgit application is missing a few of the more sparkling features found at github--notably, a comments/discussion system. Enter: disqus.

Disqus is a Javascript-injected, centralized discussion system that is gaining traction with blogs and other …

Continue reading