Skip to content

Instantly share code, notes, and snippets.

@gpspake
gpspake / ie-top-bar-fix.scss
Last active August 29, 2015 14:00
Foundation top-bar-fix
/**
*
*Sassified version of tmayr's gist: https://gist.github.com/tmayr/5190565
*
*/
.lt-ie9 {
.top-bar {
background: #2f2f2f;
// ==UserScript==
// @name Sanseref
// @namespace sanseref
// @description Replaces instances of "San Serif" with "Sanseref". Ported from and Inspired by panicsteve's cloud-to-butt extension for Google Chrome, and DaveRandom's ports thereof.
// @include *
// @version 1.0.1
// @grant none
// @updateURL https://gist.github.com/gpspake/c8f05ecd6bcbddd65d89
// ==/UserScript==
(function() {
if ( ! function_exists('vendor_custom_post_type') ) {
// Register Custom Post Type
function vendor_custom_post_type() {
$labels = array(
'name' => _x( 'Vendors', 'Post Type General Name', 'maryt' ),
'singular_name' => _x( 'Vendor', 'Post Type Singular Name', 'maryt' ),
'menu_name' => __( 'Vendor', 'maryt' ),
'parent_item_colon' => __( 'Parent Vendor:', 'maryt' ),
@gpspake
gpspake / conditional-highlight
Last active August 29, 2015 14:13
Conditionally highlight WordPress menu items
//This is useful if you want to highlight menu items conditionally.
//Example highlight the 'Blog' menu item when you are on a single post
//Highlight a custom link menu item when you are on a custom post type
//http://www.tammyhartdesigns.com/wordpress/highlight-menu-item-for-custom-post-types/
add_filter('nav_menu_css_class', 'thd_menu_classes', 10, 2);
function thd_menu_classes($classes, $item)
{
$post_types = array(
@gpspake
gpspake / examples.md
Last active September 8, 2015 15:14
Examples and stuff

#ACL's ###Check ACL's getfacl directory ###Set Recursively (And by default) setfacl -Rm u:gpspake:rwx,d:u:gpspake:rwx html

#ls -la on cd

function cd() {
 new_directory="$*";
D|--------------------------|------------------------|------------------------|
B|-----0-----0-----0-----0--|----0-----0-------------|0--------0--------------|
G|--------------------------|------------------------|------------------------|
D|--------------0-----2-----|----------------2s5-----|-----5------------------|
G|0-------2-----------------|0-------2---------------|------------------------|
@gpspake
gpspake / README.md
Last active October 20, 2015 14:40

MIS 7190 Project Group D

Data

Percent_of_Adult_Current_Smokers_by_Sex_and_Race_Ethnicity__1995-2010
SAMHSA_Synar_Reports__Youth_Tobacco_Sales
Smoking_Prevalence_in_Adults__1984-2013
The_Tax_Burden_on_Tobacco_Volume_49__1970-2014
Tobacco_Sold_to_Minors__California__1997-2014
Youth_Tobacco_Survey__YTS__Data

@gpspake
gpspake / RapperAlphabet.md
Last active January 29, 2016 16:39
An alphabet composed of rappers with a pronounced single letter in their names