Skip to content

Instantly share code, notes, and snippets.

View ahansson89's full-sized avatar

Aleksander Hansson ahansson89

View GitHub Profile

CLAUDE.md - Universal Development Principles

This document contains universal development principles and practices for AI assistants working on any project. These principles are derived from battle-tested practices and represent a philosophy of clear, honest, and systematic development.

Required Tools and Research Methods

1. Mandatory MCP Tool Usage

BEFORE ANY ACTION, you MUST use these tools. Tool names use double underscores between segments.

@ahansson89
ahansson89 / gist:93d5f1463d065c886ea5
Last active August 29, 2015 14:19
Rounded corners for Ultimate Social Deux
/*
* Add the below chunk of css to your Custom CSS
* to get back rounded corners removed in 5.x
*/
.us_skin_default .us_button { -moz-border-radius-topleft: 16px; -moz-border-radius-topright: 16px; -moz-border-radius-bottomright: 16px; -moz-border-radius-bottomleft: 16px; border-top-left-radius: 16px; border-top-right-radius: 16px; border-bottom-right-radius: 16px; border-bottom-left-radius: 16px; -webkit-border-top-left-radius: 16px; -webkit-border-top-right-radius: 16px; -webkit-border-bottom-right-radius: 16px; -webkit-border-bottom-left-radius: 16px; }
<?php
echo do_shortcode('<div style="display:inline-block;"">[ultimatesocial_facebook url="http://facebook.com/yourpage"][ultimatesocial_twitter url="http://twitter.com/"]</div>');
?>
<?php
if( class_exists('UltimateSocialDeux') ) {
echo do_shortcode('[ultimatesocial]');
}
?>
@ahansson89
ahansson89 / gist:7574653
Created November 21, 2013 01:41
Add a Font Awesome icons select to CPT meta by humanmade: https://github.com/humanmade/Custom-Meta-Boxes/
class ah_is_awesome {
function __construct() {
if(! class_exists( 'CMB_Meta_Box' ) ) {
require_once( 'includes/custom-meta/custom-meta-boxes.php' );
}
}
@betteriboxbase: yellow; //your base color
@betteriboxcontrast: red; // your contrast color
.better_iboxes {
.better_iboxes_media {
.better_iboxes_icon-border {
&.media-type-icon {
color:@betteriboxcontrast;
&.hover {
&:hover {