Skip to content

Instantly share code, notes, and snippets.

View Mobius5150's full-sized avatar

Michael Blouin Mobius5150

View GitHub Profile
@Mobius5150
Mobius5150 / download_pdfs.sh
Last active March 4, 2023 19:00
Download Websites from a CSV to PDFs on OSX/Linux
#! /bin/bash
# 👋 Howdy! To run this script, type `./download_pdfs.sh "name_of_your_csv_file"` in a terminal window.
# If you get a permissions error, run `chmod +x ./download_pdfs.sh` then try again
# This script was created for a friend by Mike Blouin and is released under the MIT License
# You can edit these fields if you want
url_col='URL' # name of the CSV column containing the URL
filename_col='name' # name of the CSV column containing the output file name
input_file="$1" # name of the CSV file
output_dir=$PWD/downloaded_pdfs # where you would like the PDFs downloaded to
@Mobius5150
Mobius5150 / BehaviorValidatedInput.cs
Created September 19, 2015 05:23
Validating Xamarin Forms field behaviors quickly
using System;
using Xamarin.Forms;
namespace Behaviours
{
public class BehaviorValidatedInput<T> where T : InputView
{
public T Element { get; set; }
public bool IsValid
@Mobius5150
Mobius5150 / vip-scanner-export.txt
Created January 17, 2014 23:28
VIP Scanner output using the VIP Theme Review on TwentyFourteen with the WordPressCodingStandardsCheck.
level description lines file
warning Antivirus Scan ClamAV is not present on this system - as such, no antivirus scanning was performed on this theme.
warning String &quot;//fonts.googleapis.com/css&quot; does not require double quotes; use single quotes instead Line 218: $font_url = add_query_arg( &amp;#039;family&amp;#039;, urlencode( &amp;#039;Lato:300,400,700,900,300italic,400italic,700italic&amp;#039; ), &amp;quot;//fonts.googleapis.com/css&amp;quot; ); functions.php
Warning Uncached function. Use WP_Query or ensure suppress_filters is false $attachment_ids = get_posts( array( functions.php
Warning Uncached function. Should be used on a limited basis or cached $term = get_term_by( 'name', $settings['tag-name'], 'post_tag' ); featured-content.php
Warning Uncached function. Should be used on a limited basis or cached $term = get_term_by( 'name', $input['tag-name'], 'post_tag' ); featured-content.php
Warning Uncached function. Use WP_Query or ensure suppress_filters is false add_action( 'pre_get_posts',