Skip to content

Instantly share code, notes, and snippets.

@bugsysop
bugsysop / tw-bootstrat-buttons.html
Created July 9, 2012 09:55
Twitter Bootstrap - All Buttons
<!--Standard gray button with gradient-->
<button class="btn" type="submit">
Button
</button>
<!--Provides extra visual weight and identifies the primary action in a set of buttons-->
<button class="btn btn-primary" type="submit">
Button
</button>
@bugsysop
bugsysop / tw-bootstrat-scroll.html
Created July 9, 2012 09:56
Twitter Bootstrap - JS ScrollSpy
<!--Scroll the area below and watch the navigation update. The dropdown sub items will be highlighted as well.-->
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="./index.html">Bootstrap</a>
@bugsysop
bugsysop / tw-bootstrat-scroll-custom.html
Created July 9, 2012 09:58
Twitter Bootstrap - Custom ScrollSpy
<!-- ScrollSpy with custom background color -->
<div class="navbar navbar-fixed-top">
<div class="navbar" style="background-color:#4E7E79;">
<div class="container">
<a class="brand" href="./index.html">LogoName</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="">
<a href="./#.html">Menu1</a>
</li>
@bugsysop
bugsysop / tw-bootstrat-hover.html
Created July 9, 2012 09:59
Twitter Bootsrap - JS Hover Popover
<a href="#" class="btn btn-danger" rel="popover" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">hover for popover</a>
#import markdown in InDesign
#source : https://github.com/ambroisemaupate/indesign-scripts/blob/master/markdown.jsx
#target indesign;
main();
function fuzzyIndex(list, string) {
for(var i = 0; i < list.length; i++) {
if(list[i].indexOf(string) != -1) {
return i;
@bugsysop
bugsysop / gist:3180399
Created July 26, 2012 05:19 — forked from samikeijonen/gist:3048693
Filter Origin byline
add_filter( 'origin_byline', 'my_byline' );
function my_byline( $byline ) {
$byline = '<div class="byline">' . __( 'Article by [entry-author] - [entry-comments-link]', 'origin' ) . '</div>';
return $byline;
}
<?php
/**
* Template Name: blog
*
* A custom page template for displaying blog archives.
*
* @package Hatch Pro
* @subpackage Template
*/
@bugsysop
bugsysop / embed-gist.php
Created July 30, 2012 08:25 — forked from roborourke/embed-gist.php
Adds autoembedding of gist urls in WordPress
<?php
/**
* Usage:
* Paste a gist link into a blog post or page and it will be embedded eg:
* https://gist.github.com/2926827
*
* If a gist has multiple files you can select one using a url in the following format:
* https://gist.github.com/2926827?file=embed-gist.php
*/
@bugsysop
bugsysop / gtoc.php
Created August 5, 2012 05:38 — forked from turtlepod/gtoc.php
Genbu Table Of Content Shortcode
<?php
/*
* Genbu Table Of Content Shortcode
* use [gtoc] to generate shortcode
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* Based on (credit) :
* WP TOC by Brendon Boshell http://infinity-infinity.com/
@bugsysop
bugsysop / sticky-custom-post-types.php
Created August 23, 2012 21:43 — forked from Viper007Bond/sticky-custom-post-types.php
Bug fixes and coding standards for Sticky Custom Post Types
<?php
/*
Plugin Name: Sticky Custom Post Types
Plugin URI: http://superann.com/sticky-custom-post-types/
Description: Enables support for sticky custom post types. Set options in Settings &rarr; Reading.
Version: 1.2.2
Author: Ann Oyama
Author URI: http://superann.com
License: GPL2