Skip to content

Instantly share code, notes, and snippets.

View craigtommola's full-sized avatar

Craig Tommola craigtommola

View GitHub Profile
@craigtommola
craigtommola / pre-expanded-accordion.js
Created August 20, 2019 21:03
Accordions with Subheading and Pre-Expansion with Named Anchor
$(function() {
if(window.location.hash) {
var target = $(window.location.hash);
var accordion = $(target).parent().prev("dt");
$(accordion).addClass("expanded");
$(accordion).next("dd").slideDown();
$('html, body').animate({scrollTop: target.offset().top - 200},
500);
}
});
@craigtommola
craigtommola / ImBeingStopped.rtf
Last active April 22, 2021 01:37
Instructions for a "Hey Siri I'm Being Stopped" shortcut for iOS
Hey Siri “I’m Being Stopped”
Instructions to setup iOS Siri Shortcut
1. Make sure your iPhone has the Shortcuts app installed
⁃ https://apps.apple.com/us/app/shortcuts/id915249334
2. Make sure the person you want to notify is saved as a contact on your phone, using their cell number, and they can receive MMS (i.e. video via text message)
3. Open the Shortcuts app and tap “Create Shortcut”
4. Tap the blue circle (with three dots) to the right of “New Shortcut” to rename the Shortcut to whatever you wish your Siri command to be. For this example, we’ll use “I’m being stopped”. Tap “Done”
5. Our Message Action:
⁃ Tap “Add Action”
@craigtommola
craigtommola / flexbox-grid-with-responsive-and-grow-effect.markdown
Created April 9, 2020 16:36
Flexbox Grid with Responsive and Grow Effect