Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Syme drsii

View GitHub Profile
@drsii
drsii / cards.md
Last active Aug 29, 2015
package cards
View cards.md

#package cards

  • package logo
  • package title
  • short description
  • version
  • manual link
  • repo link
  • efficiency rating
@drsii
drsii / 0_reuse_code.js
Last active Aug 29, 2015
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
drsii / ux-ux-foundation-admin.md
Last active Aug 29, 2015
platform admin crud ux
View ux-ux-foundation-admin.md

##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 Aug 29, 2015
cartalyst-stripe-readme
View cartalyst-stripe-readme.md

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 Jun 2, 2014
cartalyst stripe package
View examples.md

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 Aug 29, 2015
media - package readme.md
View media-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 Aug 29, 2015
late night song rewrite - 1
View all we do is code.
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,
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 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 Apr 29, 2014
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('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 Jan 10, 2014
interpret readme
View gist:8364675

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: