Skip to content

Instantly share code, notes, and snippets.

View oneblackcrayon's full-sized avatar

Frederick Polk oneblackcrayon

View GitHub Profile
@oneblackcrayon
oneblackcrayon / sass-responsive-mixin.scss
Created November 23, 2015 19:59 — forked from peschee/sass-responsive-mixin.scss
SASS responsive mixin (bootstrap breakpoints)
/**
* Responsive mixin. The media breakpoints are as defined
* in the twitter bootstrap framework:
*
* - phone
* - tablet-portrait
* - tablet-landscape-desktop
* - large-desktop
*
* Additional parameters for tagetting retina and non-retina
@oneblackcrayon
oneblackcrayon / pretty-buttons.less
Created November 22, 2015 19:57 — forked from claviska/pretty-buttons.less
A Less mixin' for pretty buttons with Bootstrap 3
.pretty-buttons(@color, @background, @text-shadow: none) {
color: @color;
#gradient > .vertical(lighten(@background, 5%), darken(@background, 5%), 0%, 100%);
border-color: darken(@background, 10%);
border-bottom-color: darken(@background, 20%);
text-shadow: @text-shadow;
.box-shadow(inset 0 1px 0 rgba(255, 255, 255, .1));
&:hover,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="Moligaloo">
<title> Submenu example </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap.min.css">
@oneblackcrayon
oneblackcrayon / functions-gallery.php
Created October 14, 2015 04:13 — forked from partageit/functions-gallery.php
Partage-it.com : changer l'apparence des galeries
@oneblackcrayon
oneblackcrayon / wp-config.php
Created October 14, 2015 04:10 — forked from bhubbard/wp-config.php
A Custom Template for wp-config.php.
<?php
################################################################################
// Custom WP-CONFIG Template.
################################################################################
################################################################################
// For Quick Client Reference
################################################################################
// Client Name:
// Salesforce URL:
@oneblackcrayon
oneblackcrayon / carousel-start.js
Created October 14, 2015 03:56 — forked from barbwiredmedia/carousel-start.js
bootstrap slider WordPress Dynamic Content ACF Custom Post Type loop Query Posts or gallery. Credit to Doug for this fantastic solution http://www.lanexa.net/2013/03/update-bootstrap-carousel-wordpress-dynamic-content/
@oneblackcrayon
oneblackcrayon / icon-bg-text-replacement.scss
Created October 14, 2015 01:11 — forked from michaelcarwile/icon-bg-text-replacement.scss
Font icon as background-image text-replacement.
.icon-bg {
width: 32px; /* required for layout, adjust as needed */
a {
margin-top: -60%; /* adjust as needed */
overflow: hidden; /* required for replacement */
padding-left: 0;
padding-right: 0;
position: relative;
text-indent: 100%;
&:after {
@oneblackcrayon
oneblackcrayon / GhettoPress.php
Created October 8, 2015 05:01 — forked from wycks/GhettoPress.php
WordPress Ghetto Loader - stop doing this, you
<?php
//Load WorsPress quick and dirty into something not WordPress. This is horrible I know,
//But the database queries they are so low, and it's just so dirty
//install WordPress in a dir like /lib or something and stick classPageLoader.php in there, ha!
//Example use for a index.php or whatever, no autoloading here!
#######################################################
require('lib/classPageLoader.php');
$content = new LoadWpContent();
@oneblackcrayon
oneblackcrayon / remove-stuff.php
Created October 8, 2015 05:01 — forked from wycks/remove-stuff.php
Remove stuff is removed from https://github.com/wycks/WP-Skeleton-Theme and is now here.
<?php
/**
* @package WordPress
* @subpackage WP-Skeleton
*/
// REMOVE SOME HEADER OUTPUT
function Wps_remove_header_info() {
remove_action('wp_head', 'rsd_link');
@oneblackcrayon
oneblackcrayon / osx-10.10-setup.md
Created September 30, 2015 09:21 — forked from kevinelliott/osx-10.10-setup.md
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software