Skip to content

Instantly share code, notes, and snippets.

View jamiebergen's full-sized avatar

Jamie Bergen jamiebergen

View GitHub Profile
@jamiebergen
jamiebergen / trello_automation.js
Last active May 3, 2019 22:14
Use Google App Engine to automate a website's content update workflow in Trello
function dailyCheck() {
// Get today's date
var todaysDate = getTodaysDate();
var todaysMonth = todaysDate['month'];
var dayOfMonth = todaysDate['day'];
var thisYear = todaysDate['year'];
var nextMonth = todaysDate['next'];
// Check cards and run tasks if found
function dailyCheck() {
// Get today's date
var todaysDate = getTodaysDate();
var todaysMonth = todaysDate['month'];
var dayOfMonth = todaysDate['day'];
var thisYear = todaysDate['year'];
var nextMonth = todaysDate['next'];
// Check cards and run tasks if found
@jamiebergen
jamiebergen / info.txt
Last active May 29, 2018 04:09
[Responsive, accessible menu with submenus] Based on responsive-nav.js
Original responsive menu:
https://github.com/viljamis/responsive-nav.js
Forked to allow for submenus with different class names
https://github.com/samikeijonen/responsive-nav.js/tree/dropdowns
-> See usage instructions
Demo: http://samikeijonen.github.io/responsive-nav.js/demos/multiple-levels/
More info: https://foxland.fi/accessible-multi-level-dropdown-navigation/
@jamiebergen
jamiebergen / functions.php
Last active May 22, 2018 17:21
[Search form] Accessible, translatable search form using Dashicons search icon #wordpress #theme
<?php
/**
* Enqueue scripts and styles.
*/
function jmb_sample_theme_scripts() {
// Make dashicons available on front end
wp_enqueue_style( 'dashicons' );
}
add_action( 'wp_enqueue_scripts', 'jmb_sample_theme_scripts' );
@jamiebergen
jamiebergen / template-functions.php
Last active May 16, 2018 04:58
[Read more link for excerpts] Accessible and translatable "read more" link #wordpress #theme
<?php
/**
* Makes the excerpt "read more" a link to the full post
*/
// Case for automatically generated excerpts
function jmb_sample_theme_excerpt_more( $more ) {
global $post;
$permalink = get_permalink($post->ID);
$title = get_the_title();
$excerpt_more = jmb_sample_theme_get_read_more_link( $permalink, $title );
@jamiebergen
jamiebergen / functions.php
Created March 20, 2018 21:10
[Social Sharing Shortcode] Generates social sharing markup #bixler #social
// Shortcode for social sharing
// [red-social-sharing]
function social_sharing_shortcode() {
global $post;
// Get current page URL
$page_url = urlencode(get_permalink());
// Get current page title
@jamiebergen
jamiebergen / _description.md
Last active March 18, 2022 17:34
Gitignore whitelist approach #git
@jamiebergen
jamiebergen / single-event_backlink.php
Last active August 29, 2015 14:16
The Events Calendar: To remove the All Events link from single-event.php and return to upcoming or archived events pages