Skip to content

Instantly share code, notes, and snippets.

View wjhdev's full-sized avatar
📡
buildin'

Will Haynes wjhdev

📡
buildin'
View GitHub Profile
@wjhdev
wjhdev / Herald Branding.md
Last active December 4, 2015 20:01
Herald Wiki

The Herald's style has changed dramatically throughout the years, and to keep things consistent moving forward, we should try to hold to one general style.

These are the style rules for the digital presences, which should spill into all areas of our organization.

Logo

There is a horizontal and vertical version of our logo. There is also a version floating around with a serif font. Make sure you are using one of the approved versions of the logo:

Logos

@wjhdev
wjhdev / New Herald Server.md
Last active June 9, 2018 19:10
badgerherald.com

Creating new server for badgerherald.com

I created a fresh server image created Nov 14, 2015. It's a Digital Ocean droplet running Debian 8.2 x64 on NY 2.

  • IP: 192.241.251.107
  • 2GB Ram
  • 40GB SSD Disk

Once that was done I moved on to installing the LAMP stack.

<?php
if ($_SERVER['REQUEST_METHOD'] !== 'GET')
print "Invalid request method.";
include_once dirname(__FILE__) . '/inc/load.php';
include_once dirname(__FILE__) . '/inc/utils.php';
/**
*
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
@wjhdev
wjhdev / banana-nut-bread.md
Last active August 27, 2021 00:48
Recipes
  • sift before measuring 2 cups flour
  • resift with 1/2 tsp baking powder, 1/2 tsp soda, 1/4 tsp salt.
  • cream until light 3/4 cup sugar, 1/4 cup butter.
  • beat until light and stir in 1 egg
  • beat in 2/3 cup mashed bananas
  • stir these ingredients into the flour mixture in about 3 parts (until blended only) alternate with thirds of 3 Tbsp sour milk as buttermilk.
  • add 1/2 cup broken walnuts.

Cook 350° for 1 hr. 325° using pyrex

@wjhdev
wjhdev / examples.md
Last active August 29, 2015 14:11
Django tidbits
Changing the Model

Check migration sql

python manage.py sqlmigrate polls 0001

Build the migration

Finding php.ini

php -i | grep 'Configuration File'