As you apply API level event listeners throughout your application you must remember to remove the event when you are done with it, usually when the window is closed. Otherwise your events will end up firing multiple times and things can get messy. Especially if a sql query is part of the call. These stray event listeners are also known as “zombie event listeners”.
The object below can help you manage your events and you will never have to worry about removing them. Any event listener you add with this wrapper will automatically get removed when the window is closed. It is essentially a wrapper for Ti.API.addEventListener and allows you to assign an event to a specific window.
This is a basic commonjs module.
Example | Github
Perhaps this could helpful to someone. Here is a basic shell script I wrote for merging hundreds KMZ, KML and Shapefiles in to one nice ESRI Shapefile. This depends on ogr2ogr.
To run, edit the first 4 variables if needed and then cd to the directory containing this script and do:
At work we have a shell script to handle the migration from to dev to staging to production and so on. The script properly converts the serialized objects containing the domain name and replacing the old one. It works great, however, it’s a shell script. I wanted something faster, easier, and something I could use from any computer, anywhere. So I wrote peach. Also, this doesn’t have to be WordPress site, it will handle ANY standard mysql dump. And I named it Peach. Enjoy.
Feel free to clone it on github.
Google Maps is a great library but it only offers so much out of the box when it comes to customization. I compiled a list of API’s for creating custom “slippy maps“.
These maps require tiles. Preferably a tile server will generate these so you don’t have create your own massive directory tree containing all of the tiles. Below are options.
It is commonly used for tweening powered by css. This is all well and good, but what if you want to tween a dom element attribute such as viewBox on a SVG element? Well, the animation method can handle that as well. Take a look.
Also, see a working example here. (Works in all modern browsers)
The “duration” is the amount of milliseconds the tween will last. “step” will be called at every step of the tween which is where you will put your animation logic of course, and finally “complete” will be called once the tween if finished. Tween on.
This app distinguishes itself in it’s ease of use by instantly calculating rates without having to press extraneous buttons. When negotiating a loan, this can be useful on both sides of the table by allowing the users to convert from APR to Effective rate and back seamlessly and effortlessly.
Check it out here.
People like having a convenient Facebook share link on their website. Facebook allows you to do this by passing a few arguments to their sharer.php script. Like so:
<a href="https://www.facebook.com/sharer/sharer.php?u=http://example.com/stuff/11/2200&t=Some text about the shared item.">Share!</a>
- The u argument is the url that you are sharing.
- The t argument should be the descriptive text that goes along with the post. However this is deprecated and no longer works. Awesome, thanks Facebook.
Rye is a professional and bone dry WordPress starter theme that I have been working on. Assuming you are quite familiar with the almighty Loop, it is not included. Along with all of the other mumbojumbo you either end up stripping out or let take up lines in your code. With the default WordPress themes I find much of my time is used removing unwanted code, deleting files and re-writing code from previous sites. Rye aims to correct these issues by giving a solid site foundation with out a specific theme in mind. The heart of Rye is the beautiful functions.php file.
Check it out on GitHub or Download it