Skip to content

Instantly share code, notes, and snippets.

View jasonshanks's full-sized avatar

jasonshanks jasonshanks

View GitHub Profile
@hirasso
hirasso / ACFSyncFieldGroups.php
Last active April 17, 2024 15:09
A WordPress Plugin that allows to sync ACF field groups via WP CLI
<?php
/*
* Plugin Name: ACFSyncFieldGroups
* Plugin URI: https://gist.github.com/hirasso/c48c04def92f839f6264349a1be773b3
* Description: Allows to sync ACF field groups via WP CLI
* Version: 0.0.2
* Author: Rasso Hilber
* Author URI: https://rassohilber.com/
* License: GPL2+
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
@viticci
viticci / Selection.py
Created November 24, 2015 03:15
Selection.py
# coding: utf-8
import sys
import html2text
import clipboard
import webbrowser
webpage = clipboard.get()
text = sys.argv[1]
@magnetikonline
magnetikonline / README.md
Last active September 27, 2022 18:12
Responsive embedding of Google Maps (or anything <iframe> embedded really).

Responsive Google Maps embedding

Simple technique for embedding Google Maps <iframe>'s responsively using a padding-bottom percentage trick, which when applied to a block element will be calculated as a percentage of the element width - essentially providing an aspect ratio.

This technique should work on anything that is <iframe> embedded from your social network/service of choice.

@ttscoff
ttscoff / itunesicon.rb
Last active January 13, 2022 10:07
Retrieve a 512 x 512px icon for an iOS app
#!/usr/bin/ruby
# encoding: utf-8
#
# Updated 2017-10-25:
# - Defaults to large size (512)
# - If ImageMagick is installed:
# - rounds the corners (copped from @bradjasper, https://github.com/bradjasper/Download-iTunes-Icon/blob/master/itunesicon.rb)
# - replace original with rounded version, converting to png if necessary
#
# Retrieve an iOS app icon at the highest available resolution
@joe-pindell
joe-pindell / TagWithDoneAlternativeDate.scpt
Created April 5, 2011 02:50
Tag with Done Alternative with Date - TaskPaper Applescript
tell application "TaskPaper"
set selected_entries to get selected entries
set theDate to (do shell script "date +'%Y-%m-%d'")
-- Iterate over selection to determine if we are adding or removing done tag
set add_done to false
repeat with each in selected_entries
tell each
if not (exists tag named "done") then
set add_done to true