Skip to content

Instantly share code, notes, and snippets.

View drsii's full-sized avatar

Dan Syme drsii

View GitHub Profile
@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
@drsii
drsii / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@drsii
drsii / ux-ux-foundation-admin.md
Last active August 29, 2015 14:04
platform admin crud ux

##Viewing data-grid

one action menu per table.

add | edit | delete | copy

add - always shows edit - only shows when one record is selected, or the primary label in the row is clicked. delete - shows when one or multiple items is selected. copy - shows when one item is selected.

@drsii
drsii / cartalyst-stripe-readme.md
Last active August 29, 2015 14:02
cartalyst-stripe-readme

xx-May-14 - v1.0.0

API

  • Charges
    • Create a new charge
    • Update an existing charge
    • Capture the payment of an existing, uncaptured, charge
    • Refund a charge
    • Retrieve all the charges
@drsii
drsii / examples.md
Created June 2, 2014 20:52
cartalyst stripe package

User

Apply a coupon to the user

$coupon = Input::get('coupon');

$user = User::find(1);

$user->applyCoupon($coupon);
@drsii
drsii / media-readme.md
Last active August 29, 2015 14:01
media - package readme.md

Media

A framework agnostic filesystem package with multiple adapters like AwsS3 and Dropbox.

The package requires PHP 5.4+ and comes bundled with a Laravel 4 Facade and a Service Provider to simplify the optional framework integration and follows the FIG standard PSR-4 to ensure a high level of interoperability between shared PHP code and is fully unit-tested.

Part of the Cartalyst Arsenal & licensed Cartalyst PSL. Code well, rock on.

Package Story

@drsii
drsii / all we do is code.
Last active August 29, 2015 14:01
late night song rewrite - 1
bored during composer update - https://www.youtube.com/watch?v=GGXzlRoNtHU
DJ Cartalyst
All we do is code code code no matter what.
got packages on our minds can never get enough.
and every time i composer update everybody’s fingers go up…
and they stay there,
and we wait here,
#package checklist
Each package must meet all checks before we can mark it stable.
- Repository Description
- composer.json is consistant
- package story on readme.md
- contributing.md exists
- licence checks (readme, file headers, licence.txt)
- PHP 5.4 or PHP 5.3+
- PSR-4
@drsii
drsii / gist:11408272
Created April 29, 2014 18:29
platform-content - feature
You no longer require a database entry to load content. providing a path will run through Cartalyst/interpret and boom, job done.
@content('foo.bar')
@content('foo.bar', 'baz')
@content('foo.bar', 'http://baz.md')
or
@content('foo.bar', 'some/folder/http://baz.md')
@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: