Skip to content

Instantly share code, notes, and snippets.

@embolden
embolden / This is fine.md
Created August 15, 2018 19:33 — forked from 25A0/This is fine.md
This is fine. ASCII art

This is fine. ASCII art

preview

There are two versions, one is for dark letters on a bright background, the other one for bright letters on a dark background.

The bright on dark version looks better, so go for that one if you can :)

Dark letters on a bright background

.site-content {
@include clearfix();
@include display(flex);
@include flex-direction(row);
@include flex-wrap(nowrap);
@include justify-content(center);
@include align-items(flex-start);
@include align-content(flex-start);
}
<?php
/**
* @todo: Document me!
*/
if( ! function_exists( 'dd' ) ) {
function dd() {
array_map(function($x) { var_dump($x); }, func_get_args());
die;
}
}
<?php
/**
* @todo Document me!
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*/
function _s_remove_default_customerizer( $wp_customize ) {
// Remove unused defaults
// Site Identity
// $wp_customize->remove_section( 'title_tagline' );
<?php
function _s_nav_menu( $menu_options ) {
$transient_name = $menu_options['theme_location'] . '-menu-cache';
$menu = null;
$echo = isset( $menu_options['echo'] ) ? $menu_options['echo'] : true;
if( $menu = get_transient( $transient_name ) ) {
// Do nothing; jut assign the transient to $menu
}else {
// Reset the echo value; we need to return to set
@embolden
embolden / RP Zero
Created October 8, 2013 06:55
RP Zero
anything = [260, 292, 390, 395, 440, 487, 520, 585, 750, 790, 880, 975, 1350, 1820, 3250]
skins = [195,260,390,487,520,675,750,975,1350,1820,3250]
rp20 = [0, 650, 1300, 1950, 2600, 1380, 2030, 2680, 2760, 2800]
def printPurchase(v,ans):
ret = []
for i in xrange(len(v)):
if(ans[i]!=0):
ret.append(str(ans[i])+' '+str(v[i])+('s' if ans[i]>1 else ''))
return ret
@embolden
embolden / gist:6817470
Created October 3, 2013 21:31
How to zip a folder and ignore the .git folder from the OSX command line
zip -r filename.zip folder-path -x *.git*
@embolden
embolden / gist:6676572
Created September 23, 2013 20:37
OSX find to delete any WordPress generated thumbnail with 1-4 digits x 1-4 digits of height/width.
find -E . -regex ".*-[[:digit:]]{1,4}x[[:digit:]]{1,4}.(jpg|png|gif)" -exec rm {} \;
@embolden
embolden / Default WordPress Widget Classes
Created July 1, 2013 19:25
A List of the default WordPress widget's default classes.
.widget_archives,
.widget_calendar,
.widget_categories,
.widget_nav_menu,
.widget_meta,
.widget_pages,
.widget_recent_comments,
.widget_recent_entries,
.widget_rss,
.widget_search,
AL : Alabama
AK : Alaska
AZ : Arizona
AR : Arkansas
CA : California
CO : Colorado
CT : Connecticut
DE : Delaware
DC : District of Columbia
FL : Florida