Skip to content

Instantly share code, notes, and snippets.

@alehandrof
alehandrof / pi.time_for_humans.php
Created November 12, 2015 20:48
Wee statamic add-ons
<?php
/**
* Time for humans
* {{ time_for_humans when="insert a time and/or date in any format here" }}
* For more details see: http://carbon.nesbot.com/docs/#api-humandiff
*/
use \Carbon\Carbon;
@alehandrof
alehandrof / 0_reuse_code.js
Created November 1, 2015 18:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@alehandrof
alehandrof / A rainy Paris café on the command line
Last active August 29, 2015 14:14
A rainy Paris café on the command line
http://alexarmstrong.net/2015/02/rainy-paris-cafe
@alehandrof
alehandrof / LibGuides v2 Notes
Last active April 9, 2024 12:12
LibGuides v2 Notes
LibGuides v2 Notes
@alehandrof
alehandrof / simpletask gtd.md
Last active February 11, 2024 11:52
How to GTD with Simpletask

How to GTD with Simpletask

This is a guide to implementing Getting Things Done (GTD) using [Simpletask][] by [Mark Janssen][].

Simpletask uses the [todo.txt][] syntax, but has sufficient differences and quirks of its own to be worth describing in detail---at least, that's the story I'm going with. I actually began this guide as an exploration of my own trusted system. Personal workflows are by definition eccentric; I have included only what seems to me to be broadly useful.

This implementation of GTD covers the "standard" classifications: next actions by context, projects, somedays, agendas by person and meeting, etc. In a departure from strict GTD, each entry in these lists is also tagged with an area of focus, interest or responsibility. I find that the ability to slice the system by this extra dimension is worth the additional complexity at the processing and organizing stages. Limitations, issues and workarounds are discussed at the end.

Before we begin, some words of wisdom

@alehandrof
alehandrof / subl-scopes
Last active November 23, 2023 20:09
scopes for sublime text schemes
comment
comment punctuation
comment.block.documentation
comment.block.preprocessor
comment.documentation
constant
constant.character
constant.character punctuation
constant.character.entity
constant.character.escape
@alehandrof
alehandrof / Default.sublime-keymap
Last active October 3, 2017 16:13
Modal Navigation for: Sublime 3 w/ MultiBind & Colemak
// MultiBind
// Modal Navigation for Colemak -- inspired by [Miniguru](http://www.guru-board.com/english/layout_en)
{ "keys": ["alt+'"], "command": "multibind_toggle", "args" : { "layout": "modal-nav-colemak" } },
{ "keys": ["ctrl+shift+'"], "command": "multibind_show" },
{ "keys": ["escape"], "command": "multibind_toggle", "args" : { "layout": "default" }, "context": [ { "key": "multibind.modal-nav-colemak" } ] },
{ "keys": ["n"], "command": "move", "args": {"by": "characters", "forward": false}, "context": [ { "key": "multibind.modal-nav-colemak" } ] },
{ "keys": ["i"], "command": "move", "args": {"by": "characters", "forward": true}, "context": [ { "key": "multibind.modal-nav-colemak" } ] },
{ "keys": ["u"], "command": "move", "args": {"by": "lines", "forward": false}, "context": [ { "key": "multibind.modal-nav-colemak" } ] },
@alehandrof
alehandrof / good-things.less
Last active December 13, 2015 19:59
Good things about LESS
/* Good things about LESS */
// Variables (or constants, rather)
// & operations
@baseline: 21px;
@red: #a00;
.error {
margin-bottom: @baseline;
padding: (@baseline / 2);
color: @red;