Mark Grealish

Cats and wizardry.


2018

September


Cycling is Great

I love cycling.

Phone Repair

So it turns out that being a programmer also means I can repair phones. :p

Cast Any Value as an Array in JavaScript

Another stupid little thing. In JavaScript you can use Array.from() or the spread syntax to create a shallow copy of an array or other iterable object, e.g. Array.from(foo) // [foo] [...foo] // [foo] However you can’t perform this with simple values: Array.from(9); // [] [...9] // Uncaught TypeError: 9 is not iterable The good old […]

I Haven’t Been Kind to Myself

When you put shit in, you get shit out. At last, today, it occurred to me that I haven’t been kind to myself over the past month. Two years ago I learned that I only know when I’m stressed or angry or upset are in the ways I express them. Like that I eat junk […]

Grey, Speckled With Light

Grey skies overhang Grand Canal Dock in Dublin at sunset in early September.

Git Alias to Flag Files Unchanged

Inspired by a question on Stack Overflow, “Can I get a list of files marked –assume-unchanged?”, this alias allows me to glob mark files as unchanged (or changed) from the command-line. [alias] unchanged = !git ls-files -v | grep \"^[[:lower:]]\" thaw = "!git update-index --no-assume-unchanged $@" freeze = "!git update-index --assume-unchanged $@" As an example […]

I Wish I Were Lost

With Storm Helene due to make landfall over Ireland tonight, I went up and out on my bicycle around the south city out as far as the foothills.

The Baily Lighthouse

The Baily Lighthouse in Howth as Storm Ali rolls over the Irish Sea.

Harold’s Cross, Early Autumn

My neighbourhood looks gorgeous as Autumn rolls in. 🍂🌞

Of Faith and Reason

Through reason, sanity.