Skip to content

Instantly share code, notes, and snippets.

Angelia Baladon 10SexyApples

Block or report user

Report or block 10SexyApples

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@scottkellum
scottkellum / SassMeister-input.scss
Created Jul 16, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// Modular Scale (v2.1.1)
// ----
@import 'modular-scale';
@mixin ml($range...) {
@if $ms-range == null {$ms-range: $range !global;}
@include ms-respond(line-height, 1, $range, 1);
@retlehs
retlehs / header.php
Created Apr 29, 2015
Sage header template for Bootstrap top navbar component
View header.php
<?php
// This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker
// somewhere in your theme.
?>
<header class="banner navbar navbar-default navbar-static-top" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only"><?= __('Toggle navigation', 'sage'); ?></span>
@maxluster
maxluster / responsive.scss
Last active Feb 4, 2019
Responsive SASS: Chain media queries and coordinate named breakpoints
View responsive.scss
// Created by Max Luster (@maxluster)
// Usage instructions at https://bugsnag.com/blog/responsive-typography-with-chained-media-queries
// Requires SASS >= 3.3
// Enhanced by Breakpoint 2.4.x and Compass 1.0 (alpha)
// For SASS 3.2.x support, use https://gist.github.com/maxluster/c9ecc6e4a6770e507c2c
// Provides a simplified syntax for chaining media queries across named or numeric breakpoints
@mixin responsive($properties, $default-value, $responsive-values){
// No named breakpoints by default
View modern-scale.scss
// --------------------------------------------------------------------------------------
// A More Modern Scale for Web Typography
// Based on this article: http://typecast.com/blog/a-more-modern-scale-for-web-typography
// --------------------------------------------------------------------------------------
$body-font-size: 1em !default;
// Adjusts body typography to be default
// for each browser.
@mixin reset-body-font-size($font-size: 100%, $size-adjustment: 0.5) {
@letorbi
letorbi / fontsmoothie.js
Last active Apr 4, 2018
This code enforces font-smothing for web fonts even if it's not enabled in the system settings. More info: http://pixelsvsbytes.com/blog/2013/02/nice-web-fonts-for-every-browser
View fontsmoothie.js
// Font Smoothie copyright 2013,14,15 Torben Haase <http://pixelsvsbytes.com>
// Source-URL <https://gist.github.com/letorbi/5177771>
//
// Font Smoothie is free software: you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License as published by the Free
// Software Foundation, either version 3 of the License, or (at your option) any
// later version.
//
// Font Smoothie is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
@marcedwards
marcedwards / high-dpi-media.css
Last active Jul 15, 2019
A CSS media query that captures almost all high DPI aware devices.
View high-dpi-media.css
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs running IE, zoomed in */
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */
/* - Android hdpi devices and above */
@dbernar1
dbernar1 / gist:1371129
Created Nov 16, 2011
Checking out WordPress 3.2.1 as a git submodule
View gist:1371129
git submodule add git://github.com/markjaquith/WordPress.git core
cd core
git checkout 3.2.1
cd ..
git add . -A
git commit -m 'Checked out core at 3.2.1'
@billerickson
billerickson / gist:1238281
Last active Mar 28, 2019
Customize Event Query using Post Meta
View gist:1238281
<?php
/**
* Customize Event Query using Post Meta
*
* @author Bill Erickson
* @link http://www.billerickson.net/customize-the-wordpress-query/
* @param object $query data
*
*/
@scribu
scribu / wrapping.php
Last active Feb 9, 2019
Theme wrapping
View wrapping.php
<?php
# License: Public Domain
# I recommend replacing 'my_' with your own prefix.
function my_template_path() {
return My_Wrapping::$main_template;
}
@thefuxia
thefuxia / class.TTT_User_Profile_Addon.php
Created Jan 2, 2011
Class to add custom fields to the user profile in WordPress.
View class.TTT_User_Profile_Addon.php
<?php
/**
* Adds a form field to the edit profile page.
*
* Usage:
add_action( 'init', 'init_profile_addons' );
function init_profile_addons()
{
$GLOBALS['extended_author_text'] = new TTT_User_Profile_Addon(
array (
You can’t perform that action at this time.