/gempesaw/writing

  • Cannot open load file: subst-ksc - os x 10.9.2, emacs 24.4.50.1

    May 17, 2014

    I'm on OS X Mavericks 10.9.2, running Emacs 24.4.50.1 GNU Emacs 24.4.50.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.19) compiled via homebrew. I was trying to get back into Emacs package authoring with the help of rejeep's excellent Cask and ert-runner tools, but I was getting an error that didn't pop up on Google very well:

    read more →

  • Cleaning up whitespace in directories with some elisp

    May 5, 2014

    I had a project with an outdated indentation convention. Present-me recently decided to change bracket conventions from the way past-me had been doing things. So, I updated my emacs settings so that magnar's (cleanup-buffer) function would properly format the files. But, there were multiple files in the project and I didn't feel like manually opening each one just to cleanup (C-c n) and save (M-s) it. So, I had emacs do it for me, relying heavily on the excellent f.el library and the aforementioned (cleanup-buffer).

    read more →

  • Trimming and down-casing strings with AngularJS Filters: lowercase and limitTo

    May 4, 2014

    I've got a small ng-repeat over this array:

    read more →

  • Prevent Selenium Webdriver's Firefox from stealing focus on OS X

    May 3, 2014

    When I'm composing automated functional browser tests, I usually run the tests against a local instance of Webdriver on my own computer to keep the feedback loop tight. Once authoring is done, I'll kick it off to Saucelabs for cross-browser testing and additional validation.

    read more →

  • An AngularJS File Tree (with a PHP backend)

    April 25, 2014

    Something I needed in my AngularJS app was a file tree that exposed a few folders full of flat files to the user. At the beginning of 2014, there were only a few google groups posts about trees in angular - apparently the recursive nature of the tree structure made it complicated to express in the form of directives. Luckily, there are now a few competing file tree projects available. The one I ended up going with is wix's angular-tree-control for a few reasons. I'll go over a few of those reasons, walk through the frontend usage, and also detail the backend PHP code that generates the tree in the right format that angular-tree-control can appropriately consume.

    read more →

← newer page 5 of 11 older →
home · about · archive · rss · github theme · color-scheme