Skip to content

Instantly share code, notes, and snippets.

View trishasalas's full-sized avatar

Trisha Salas trishasalas

  • Level Access
  • Tulsa, OK
View GitHub Profile
@trishasalas
trishasalas / gist:2794178
Created May 26, 2012 14:42 — forked from pdewouters/gist:2464266
Genesis layouts with SCSS / Susy fluid grid
// Layout ----------------------------------------------------------------------
@include establish-baseline(16px);
#nav,
#inner,
#footer{
@include container;
width:100%;
@include padding-trailer(1);
@trishasalas
trishasalas / bfc-android initial project commit
Created September 14, 2012 00:49
Tulsa Web Devs Code bfc-android
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>bfc-android</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
RewriteEngine On
RewriteRule ^(.*/)?\.svn/ - [F,L]
ErrorDocument 403 "Access Forbidden"

Fixed & Responsive Animated Progress Bars

This shows two progress bar animations, one with a fixed pixel width, and the other fully responsive.

Animation is done with the JavaScript interval method as the looper.

A Pen by Adam on CodePen.

License.

Fixed & Responsive Animated Progress Bars

This shows two progress bar animations, one with a fixed pixel width, and the other fully responsive.

Animation is done with the JavaScript interval method as the looper.

A Pen by Trisha Salas on CodePen.

License.

@trishasalas
trishasalas / Negative-text-progress-bar.markdown
Created September 10, 2013 17:24
A Pen by Trisha Salas.
@trishasalas
trishasalas / Subscription checked by default
Last active August 29, 2015 13:55
support topic checked by default
/* set forum subscription field checked by default */
function my_forum_topic_subscribed_by_default() {
echo '<script type="text/javascript">jQuery("#bbp_topic_subscription").prop("checked","checked");</script>';
}
add_action('bbp_theme_after_topic_form_subscriptions', 'my_forum_topic_subscribed_by_default');
<?php
/**
* Plugin Name: Static Templates
*
* If most of your site content is in .php template files, and you're tired of
* creating new pages, assigning them page templates, creating page templates
* then doing it all over again on production, this plugin is for you.
*
* Examples:
*
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' );
function enqueue_my_styles() {
global $wp_styles;
// Load the main stylesheet
wp_enqueue_style( 'my-theme', get_stylesheet_directory_uri() . '/style.css' );
@trishasalas
trishasalas / bbpress-functions.php
Last active August 29, 2015 13:57
bbPress Forums Loop Using get_posts();
<?php
function date_compare($a, $b)
{
$t1 = strtotime($a->post_date);
$t2 = strtotime($b->post_date);
return $t1 - $t2;
}
// Cloud Loop