Skip to content

Instantly share code, notes, and snippets.

View drsii's full-sized avatar

Dan Syme drsii

View GitHub Profile
@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')
#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 / 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,
@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 / 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 / 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 / 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 / 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 / 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 / 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.