Skip to content

Instantly share code, notes, and snippets.

View callumflack's full-sized avatar
🎯
Focusing

Callum Flack callumflack

🎯
Focusing
View GitHub Profile
@callumflack
callumflack / pepys-prose-prompt.md
Last active August 24, 2025 00:29
A Prompt for the True Rendering of Text into the Manner of Samuel Pepys

A Prompt for the True Rendering of Text into the Manner of Samuel Pepys

You are to write as Samuel Pepys. Preserve exactly the length and meaning, changing only the manner of expression.

The Key:

Write as if recording facts in a diary before bed - irritated but not theatrical, specific but not flowery, honest but not elaborate.

The Critical Points:

@callumflack
callumflack / .gitconfig
Last active July 20, 2022 02:17
Dotfiles
## https://github.com/mdo/config/blob/master/.gitconfig
## https://github.com/ajmalsiddiqui/dotfiles/blob/master/.gitconfig
## https://github.com/necolas/dotfiles/blob/master/git/gitconfig
# NB. When in terminal, you can replace "git config" with "git config --global" to set a default preference for all repositories, which are stored here.
[user]
name = Callum Flack
email = [email protected]
(function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)})({0:function(t,e,n){t.exports=n("56d7")},"01f9":function(t,e,n){"use strict";var r=n("2d00"),o=n("5ca1"),i=
@callumflack
callumflack / Post.js
Created August 16, 2018 02:00
Keystone.js: toggle and display content elements in admin UI
const Post = new keystone.List('Post', { . . . });
Post.add({
category: {
type: Types.Select,
options: ['Post', 'Event', 'Newsletter', 'Resource', 'Job'],
default: 'Post',
emptyOption: true,
},

Keybase proof

I hereby claim:

  • I am callumflack on github.
  • I am callumflack (https://keybase.io/callumflack) on keybase.
  • I have a public key whose fingerprint is D959 605D C6B1 9F71 130C 8CFE 404D 3C02 340C 42A2

To claim this, I am signing this object:

@callumflack
callumflack / gist:4f997ec1763552433c04
Created January 22, 2016 09:44
Adding class to main menu based on whether or not a post has a certain tag
{% assign focus = site.pages.news.taxonomy.tags.focus-magazine %}
<li>
<a href="{{focus.url}}"
{% if url == focus.url %}class="is-selected"
{% elsif taxonomy.tags.all contains "focus-magazine" %}class="is-selected"
{% endif %}>
{{focus}}
</a>
</li>
@callumflack
callumflack / gist:8038464
Created December 19, 2013 12:33
Grunt heroku deployment problem: package.json file
{
"name": "vincentiatreehouse",
"description": "One pager site using grunt & foundation 5",
"version": "0.0.1",
"engines": {
"node": "0.10.x",
"npm": "1.3.x"
},
"devDependencies": {
"grunt": "~0.4.1",