Skip to content

Instantly share code, notes, and snippets.


Dan Syme drsii

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

xx-May-14 - v1.0.0


  • 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 /
Created June 2, 2014 20:52
cartalyst stripe package


Apply a coupon to the user

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

$user = User::find(1);

drsii /
Last active August 29, 2015 14:01
media - package


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 / all we do is code.
Last active August 29, 2015 14:01
late night song rewrite - 1
View all we do is code.
bored during composer update -
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,
View package-checklist
#package checklist
Each package must meet all checks before we can mark it stable.
- Repository Description
- composer.json is consistant
- package story on
- exists
- licence checks (readme, file headers, licence.txt)
- PHP 5.4 or PHP 5.3+
- PSR-4
drsii / gist:11408272
Created April 29, 2014 18:29
platform-content - feature
View gist:11408272
You no longer require a database entry to load content. providing a path will run through Cartalyst/interpret and boom, job done.
@content('', 'baz')
@content('', '')
@content('', 'some/folder/')
drsii / gist:8364675
Created January 10, 2014 23:26
interpret readme
View gist:8364675


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 is as easy as adding the following to your composer.json: