Skip to content

Instantly share code, notes, and snippets.

Sebastiaan sebask

Block or report user

Report or block sebask

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:10730487
<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">
@sebask
sebask / is_child.php
Created Jun 8, 2016 — 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).
View is_child.php
/* =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 / AgeofMythology.md
Last active Jun 1, 2019
Tweaks and Hacks for the classic Age of Mythology
View AgeofMythology.md

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
View 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
You can’t perform that action at this time.