Mark Grealish

the life and code of a crazy cat man


mounts

I triggered a tickle fight at 3am

I find nothing to complain about in such a crazy turn of events.

So she took my glasses and called herself a dumb nerd

This is the cross I bear. My niece is the worst. Woe is me. Life is pain.

A (glitchy) Irish country home

Taken from a bus somewhere in Westmeath.

Slieve Gullion and the Mountains of Mourne from Leopardstown

Taken while I leant out my bedroom window, of all places!

The family Grealish

On the occasion of Ella’s religious thingy.

Moate, Co. Westmeath

This was the best of a set of panoramas I captured from the bus as it went through town. More than the rest, this one shows Moate’s character.

Convert PSD to flattened PNG file with Imagemagick

This turned out to be quite useful at work today: for PSD in *.psd; do convert "${PSD}[0]" "${PSD/psd/png}"; done

LinkedIn, distilled

Someone with the job title Recruiter viewed your profile.

The descent to Balscadden Bay

Taken at Howth, Co. Dublin.

At Balscadden Bay

I spent an enjoyable evening in reflection on the beach. :)

Bray moonrise

It was lovely there tonight. <3

Two-thirds sky

Days like today-skies like today, I miss Nevada something fierce.

I met a doctor walking his horse

We chatted together for a while along the road to Glencullen, then went our ways.

Ow, my legs

17km there and back to Glencullen, but by Christ, I had the weather for it.

instasort 4.0

Another year, another version. My growth as a programmer strikes me when I compare previous versions with the latest code. Less code which works better. You may compare the last three versions together on GitHub. #!/usr/bin/env zsh # # Functions # # # Check if Photograph is (Approximately) Square # # While it was originally […]

Avoid N + 1 issues in Ruby on Rails when checking existance

How perfect and clear, hindsight! This was another “oh, duh” moment for me. Stupid means humble means another step closer to enlightenment, so that’s good. In our application a user may favourite content in a manner à la Facebook. When rendering views, the naive way (the Mark way before this post) is to test for […]

Ella and Oisin

Taken at Eyre Square in Galway, May 1 2017.

Some shit you cannot make up

I mean, while David Zindell did make up this shit, I didn’t make up my telling of it. Before you lies a description of the mighty dick of a race of hermaphroditic transhuman seal-people.

Happy early birthday to me

I enjoyed Magic: the Gathering, barbeque and a nightcap finger of whiskey.

Generate all the rotational permutations of a string

This does not generate lexicographic permutations (use Lexicographer for that!); this plucks off one letter from the end and attaches it to the start: rotations = (str) -> Array(str.length).fill(str).map (rotation, index) -> while index-- rotation = rotation[-1..-1] + rotation[0..-2] rotation I liked my solution and wanted to share.

Darren at Walpurgis Night

\m/

Galway, May Day 2017

With the Grealishings

Taken at 56 Central, Galway.

Somewhere Else

Taken at Three Rock, Co. Dublin.

No to everything

I did an online quiz. Rabble rabble, power to the people.

(Simple!) Sass/Scss margin size management

Like, fuck it. After something like three years fucking with this problem, a realization has come upon me that the simplest solutions are the best solutions. The core of my problem was this: I wanted to manage a set of margin and padding sizes from a central point. I want to base sizes all sizes […]

Three Rock and Ticknock Forest

I went up the mountain for a wander this evening, a perfect followup to tea in Malahide with my mum yesterday.

In Malahide with my Mammy

Mum came up for the day as a surprise visit!

Circular shift Roman letters in CoffeeScript

This Codewars problem annoyed the crap out of me. shift = (letter, amount) -> mod = if /[A-Z]/.test letter then 65 else 97 String.fromCharCode mod + (letter.charCodeAt(0) + amount) % mod % 26 The formula to constrain a number to a range is: (range_start + offset_here) % range_start % range_size

Snapshots from the Wicklow Way

Although by “Wicklow Way” I mostly mean “Cloghnagun” in this case.