Skip to content

Instantly share code, notes, and snippets.

@bobbygrace
bobbygrace / trello-css-guide.md
Last active September 27, 2025 06:29
Trello CSS Guide

Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets


Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

@majorgreys
majorgreys / README.md
Last active March 18, 2019 19:29
ITF Spring 2015 Databases Skills Share

Contained here are the instructions for getting your laptop set up for databases skills share as well as my presentation.

@kylephillips
kylephillips / favorites-display.php
Last active October 14, 2022 19:33
Using the Favorites get_user_favorites() function to display favorited post data in a custom format
<?php
// Method 1: simple foreach loop
$favorites = get_user_favorites();
if ( isset($favorites) && !empty($favorites) ) :
foreach ( $favorites as $favorite ) :
// You'll have access to the post ID in this foreach loop, so you can use WP functions like get_the_title($favorite);
endforeach;
endif;
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "github"]
url = GITHUB REMOTE REPO URL HERE
fetch = +refs/heads/*:refs/remotes/github/*
@lukasbestle
lukasbestle / search.php
Created November 5, 2015 12:29
Kirby $pages->search() that searches for full matches only
<?php
/**
* Fork of the native $pages->search() method
* Only searches for full matches
*/
function search($collection, $query, $params = array()) {
if(is_string($params)) {
$params = array('fields' => str::split($params, '|'));
<?php
// resize an image by the width
$image->resize($width)->url();
// resize by width and height. The bigger one will be downscaled
$image->resize($width, $height)->url();
// adjust the jpeg compression
$image->resize($width, $height, $quality)->url();
@maxfenton
maxfenton / books.md
Last active December 30, 2025 03:07
Books I finished reading

Books I finished reading

in 2025

  • Mister Miracle - Tom King, Mitch Gerads
  • What Can a Body Do? (Audiobook) - Sara Hendren
  • Open Up - Thomas Morris
  • God Emperor of Dune (Audiobook) - Frank Herbert
  • Children of Dune (Audiobook) - Frank Herbert
  • The Wild Kingdom - Kevin Huizenga
  • Hypermedia Systems - Carson Gross, Adam Stepinski, Deniz Akşimşek
untrailingSlashIt(str) {
return str.replace(/\/$/, '');
}
trailingSlashIt(str) {
return untrailingSlashIt(str) + '/';
}
@lifewinning
lifewinning / arendtquotes.md
Created January 30, 2017 23:54
Passages from Arednt's Origins of Totalitarianism, with page numbers.

From the Harvest Books paperback edition

"The supranationalism of the antisemites approached the question of international organization from eactly the opposite point of view. Their Aim was a dominating superstructure which would destroy all home-grown nationalist structures alike. They could indulge in hypernationalistic talk even as they prepared to destroy the body politic of their own nation, because tribal nationalism, with its immoderate lust for conquest, was one of the principal powers by which to force open the narrow and moset limits of the nation-state and its sovereignty." (41)

"Only two decades separated the temporary decline of the antisemitic movements from the outbreak of the first World War. This period has been adequately described as a 'Golden Age of Security' because only a few who lived in it felt the inherent weakness of an obviously outmoded political structure which, despite all prophecies of imminent doom,