Skip to content

Instantly share code, notes, and snippets.

View robertcedwards's full-sized avatar
🖼️
Framing

Robert C Edwards robertcedwards

🖼️
Framing
View GitHub Profile
@robertcedwards
robertcedwards / functions.php
Created May 1, 2012 00:57
Adding custompost type with taxonomy then display on tag page
register_taxonomy("Tags", array("video"), array("hierarchical" => false, "label" => "Video Tags", "query_var"=> true,"singular_label" => " Video Tag", "rewrite" => true));
@robertcedwards
robertcedwards / minicartinc.php
Created May 12, 2012 23:24
Minicart include for wordpress
<script src="<?php bloginfo('template_directory'); ?>/_/js/minicart.js"></script>
<script type="text/javascript">
PAYPAL.apps.MiniCart.render();
</script>
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
@robertcedwards
robertcedwards / gist:2950871
Created June 18, 2012 21:34
Borrowed from:http://codesnippets.joyent.com/posts/show/963 AGAIN another IE fix. IE of course does not recognize the max-width CSS property. This piece of code will fix it for IE6 and IE7. This code snip will make the maximum width for the html object 90
.cssClass
{
width:expression(document.body.clientWidth > 900? "900px": "auto" );
}
@robertcedwards
robertcedwards / functions.php
Created July 17, 2012 19:29
Functions for poolside
<?php
// Translations can be filed in the /languages/ directory
load_theme_textdomain( 'html5reset', TEMPLATEPATH . '/languages' );
$locale = get_locale();
$locale_file = TEMPLATEPATH . "/languages/$locale.php";
if ( is_readable($locale_file) )
require_once($locale_file);
// Add RSS links to <head> section
@robertcedwards
robertcedwards / functions.php
Created July 18, 2012 19:21
Wordpress Page specific javascript
<?php if (is_page('home') ) { ?>
<!--home page custom JS-->
<script type='text/javascript' src="<?php bloginfo('template_directory'); ?>/Scripts/customJS.js"></script>
<?php } ?>
@robertcedwards
robertcedwards / protectyoneck.php
Created July 19, 2012 18:18
Hardened, cleaned up wp-config.php file for use with environmental variables
<?php
/** @package WordPress */
if ( file_exists( dirname( __FILE__ ) . '/local.php' ) ) {
include( dirname( __FILE__ ) . '/local.php' );
define( 'WP_LOCAL_DEV', true ); // We'll talk about this later
} else {
/** Hardened database loop */
$dbvalues = array('DB_HOST', 'DB_NAME', 'DB_USER', 'DB_PASSWORD');
/** -------------------------------------------------------------*/
{
"type": "QUAD OP-AMP",
"title": "LM324N Series High Gain Low Power Quad Operational Amplifier - DIP-14",
"label": "LM324N",
"description": "These devices consist of four independent high-gain frequency-compensated operational amplifiers that are designed specifically to operate from a single supply over a wide range of voltages.\n\nDatasheet:http://datasheet.octopart.com/LM324N-Texas-Instruments-datasheet-148749.pdf",
"tags": [
"LM324N",
"Texas Instruments",
"Quad OP-AMP"
],
//
//geo-location-javascript v0.4.8
//http://code.google.com/p/geo-location-javascript/
//
//Copyright (c) 2009 Stan Wiechers
//Licensed under the MIT licenses.
//
//Revision: $Rev: 77 $:
//Author: $Author: [email protected] $:
//Date: $Date: 2011-01-11 14:57:50 -0500 (Tue, 11 Jan 2011) $:
@robertcedwards
robertcedwards / gist:3342906
Created August 13, 2012 18:18
Facebook iphone intent url
<a href="fb://page/212971392077465" class="facebook">My Fanpage</a>