Skip to content

Instantly share code, notes, and snippets.

View MikaCaldera's full-sized avatar
🐱
I only challenge because I care.

Mika Caldera MikaCaldera

🐱
I only challenge because I care.
View GitHub Profile
@GarrettWeinberg
GarrettWeinberg / cards-equal-height.js
Last active April 7, 2021 15:27
Make All Cards Equal Height
// cards same height
let cards = $('.card'), //get all cards
heights = [], //height values array
tallest; //tallest card
function normalizeHeights() {
cards.each(function() {
heights.push($(this).height());
});
tallest = Math.max.apply(null, heights);
@MWDelaney
MWDelaney / app.js
Last active March 26, 2023 20:32
Gravity Forms better spinner
$(".gform_wrapper form").on("submit", function(e){
$(this).find(".gform_button").attr("disabled", true);
});
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active November 20, 2025 18:06
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@MWDelaney
MWDelaney / App.php
Last active February 27, 2019 15:56
ACF Header Media
<?php
// app/Controllers/App.php
/**
* Set up header media from ACF or featured image
*/
public function headermedia()
{
// Initialize the return array
@mtx-z
mtx-z / wp-bootstrap4.4-pagination.php
Last active January 16, 2025 16:15
Wordpress 5.4 Bootstrap 4.4 pagination (with custom WP_Query() and global $wp_query support) (UPDATED for Bootstrap 5: https://gist.github.com/mtx-z/af85d3abd4c19a84a9713e69956e1507)
<?php
/**
* @param WP_Query|null $wp_query
* @param bool $echo
* @param array $params
*
* @return string|null
*
* UPDATE for Bootstrap 5.0: https://gist.github.com/mtx-z/af85d3abd4c19a84a9713e69956e1507
*
@anschaef
anschaef / bootstrap-4-sass-mixins-cheat-sheet.scss
Last active August 11, 2025 18:58
Bootstrap 4 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 4 Sass Mixins [Cheat sheet]
// Updated to Bootstrap v4.5.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/master/scss/mixins
/* -------------------------------------------------------------------------- */
/*
// ########################################################################## */
// New cheat sheet for Bootstrap 5:
@cferdinandi
cferdinandi / terminal-cheat-sheet.txt
Last active October 11, 2025 01:18
Terminal Cheat Sheet
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help