Skip to content

Instantly share code, notes, and snippets.

View nszumowski's full-sized avatar
🏠
doin' stuff

Nick Szumowski nszumowski

🏠
doin' stuff
  • Burlington, VT
  • 02:05 (UTC -05:00)
View GitHub Profile
@ourmaninamsterdam
ourmaninamsterdam / LICENSE
Last active December 17, 2025 23:35
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@mikejolley
mikejolley / gist:e8094a1e78e939d0d746
Created December 1, 2014 10:50
Enable job thumbnails and set first attached image as the thumbnail on submission
<?php
// Add post type image support
add_action( 'init', 'enable_job_thumbnails', 50 );
function enable_job_thumbnails() {
add_post_type_support( 'job_listing', 'thumbnail' );
}
// Set first uploaded attached image as thumbnail
@jhned
jhned / awesome-wordpress-favicons
Last active May 6, 2024 10:50
Ever wanted to set up custom favicons in the WordPress admin or on the WordPress login screen? Well, now you can.
// First, create a function that includes the path to your favicon
function add_favicon() {
$favicon_url = get_stylesheet_directory_uri() . '/images/icons/admin-favicon.ico';
echo '<link rel="shortcut icon" href="' . $favicon_url . '" />';
}
// Now, just make sure that function runs when you're on the login page and admin pages
add_action('login_head', 'add_favicon');
add_action('admin_head', 'add_favicon');