Skip to content

Instantly share code, notes, and snippets.

@sebask
sebask / bread.md
Created October 21, 2017 09:04 — forked from daneden/bread.md

Hearth Loaf

This bread takes about two days to make. The recipe seems long, but it’s just detailed. The steps are also very catered to my own schedule, so you should play around with the steps, making use of your refrigerator, to see what works for you.

Also, this recipe is basically a direct copy of a recipe in Josey Baker’s excellent book on making bread, and I implore you to buy it and read it.

Stuff you’ll need

  • Store-bought yeast (I use dry active)
  • Whole wheat flour
@sebask
sebask / AgeofMythology.md
Last active February 16, 2024 21:10
Tweaks and Hacks for the classic Age of Mythology

Age of Mythology

Custom resolution

Create user.cfg in /startup and add the following lines (replace the values with suitable dimensions):

+nointrocinematics
xres=2880
yres=1800
@sebask
sebask / is_child.php
Created June 8, 2016 16:13 — forked from ericrasch/is_child.php
WordPress conditional function to check if a page is a parent/child/ancestor. In other words, if the page is within a tree of another page, show the code. Other code I've seen either only work with IDs, only check if it's a child, or detect all subpages (even outside of the direct tree).
/* =BEGIN: Check If Page Is Child
Source: http://bavotasan.com/2011/is_child-conditional-function-for-wordpress/
---------------------------------------------------------------------------------------------------- */
function is_child( $page_id_or_slug ) { // $page_id_or_slug = The ID of the page we're looking for pages underneath
global $post; // load details about this page
if ( !is_numeric( $page_id_or_slug ) ) { // Used this code to change a slug to an ID, but had to change is_int to is_numeric for it to work.
$page = get_page_by_path( $page_id_or_slug );
$page_id_or_slug = $page->ID;
}
@sebask
sebask / gist:10730487
Created April 15, 2014 12:59
we ♥ srcset
<img src="http://c.sebask.me/xRSDNVQ5gw.png" srcset="http://c.sebask.me/ilXAzXo82s.png 1x, http://c.sebask.me/xRSDNVQ5gw.png 2x" alt="The mask can be a limitation, but you just deal with it." height="427" width="640">