Skip to content

Instantly share code, notes, and snippets.

View drsii's full-sized avatar

Dan Syme drsii

View GitHub Profile
@drsii
drsii / gist:8364675
Created January 10, 2014 23:26
interpret readme

cartalyst/interpret

Interpret is a driver-based content rendering package, with support for HTML, Markdown & plain text. You can register custom drivers for custom content types.

As you pass content to interpret, it will determine what it is and allow you to extract it's normal value and HTML equivalent.

Installation

Installation is as easy as adding the following to your composer.json:

@drsii
drsii / gist:8360815
Last active January 2, 2016 20:59
@media() outline

Media Package: handles file storage, directory dispersion, & image manipulation.

Media Extension: handles upload, media listing, & media helpers (blade calls)

When a file is uploaded, it is stored in its original format to the public/media folder following the directory dispersion method as configured.

We then provide a series of blade calls to help developers utilize their media assets.

###@media() returns an output based on media mime type

#Discounts v1.0.0-alpha

A framework agnostic discount package featuring coupon/discount rule sets & conditions. Part of the Cartalyst Arsenal & licensed OSI BSD 3. Code well, rock on.

##Package Story

History and future capabilities.

####Incomplete

  • Discount::add(...) Can create a discount.

#Cart v1.0.0-alpha

A framework agnostic shopping cart package featuring multiple cart instances and item variants. Part of the Cartalyst Arsenal & licensed OSI BSD 3. Code well, rock on.

##Package Story

History and future capabilities.

####Incomplete

  • Cart::save('instance') User can save a cart instance.
@drsii
drsii / readme.md
Last active December 22, 2015 05:49
Cartalyst readme.md template

Package Title v0.0.1

Package description that describes the package in at least two sentances.

Story

roadmap

A story of the packages capabilities.

####Quickstart Method 1

Step 1:

Create your extension using the Workshop

Step 2:

Open your main composer.json and add the following lines into the "classmap" array of your "autoload"

<a class="tab tab-one tab-active" href="#" tabindex="0">1</a>
<a class="tab tab-two" href="#" tabindex="0">2</a>
<a class="tab tab-three" href="#" tabindex="0">3</a>
<section data-tab="one" data-tab-active=""><h2>One</h2> micro tabs are hot</section>
<section data-tab="two"><h2>Two</h2> they work really well</section>
<section data-tab="three"><h2>Three</h2>accept the annoying default browser scroll to.</section>
@drsii
drsii / gist:6116295
Created July 30, 2013 19:50
Antler @ Cartalyst Labs Project
all comments on "why create a new css framework aside"
I will be attempting to build Antler over the next 48 hours and want your help.
Antler will be a micro CSS framework based on BEM syntax, a semantic grid, and written in LESS.
It will cover
## primary sections
@drsii
drsii / sentry-social-2.2.md
Last active December 19, 2015 16:39
The Ideal Sentry Social workflow.

// Basic process

  1. User registers with social network
  2. Sentry redirects to social network for approval
  3. Social network redirects back to sentry
  4. Sentry creates user account

//Issues

  1. creating a the use account.
@drsii
drsii / cards.md
Last active August 29, 2015 14:16
package cards

#package cards

  • package logo
  • package title
  • short description
  • version
  • manual link
  • repo link
  • efficiency rating