Skip to content

Instantly share code, notes, and snippets.

View noxify's full-sized avatar

Marcus Reinhardt noxify

View GitHub Profile
@noxify
noxify / CategorySelect.php
Created August 10, 2015 09:38
Select options as a tree #196
<?php namespace App\FormItems;
//location: /app/FormItems/
use SleepingOwl\Admin\AssetManager\AssetManager;
use SleepingOwl\Admin\Repository\BaseRepository;
use SleepingOwl\Admin\FormItems\NamedFormItem;
class Dashing.Outboard extends Dashing.Widget
ready: ->
# This is fired when the widget is done being rendered
onData: (data) ->
# Handle incoming data
# You can access the html node of this widget with `@node`
# Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in.
@noxify
noxify / PackagistDetailCommand.php
Last active August 29, 2015 14:11
Packagist Search Example
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class PackagistDetailCommand extends Command {
/**
* The console command name.
@noxify
noxify / BaseController.php
Created January 10, 2014 12:53
Example to use the laravel4-theme package from teepluss Github: https://github.com/teepluss/laravel4-theme
<?php
//app/controllers/BaseController.php
class BaseController extends Controller {
/**
* Setup the layout used by the controller.
*
* @return void
*/