Skip to content

Instantly share code, notes, and snippets.

View crynobone's full-sized avatar
🖥️
Working

Mior Muhammad Zaki crynobone

🖥️
Working
View GitHub Profile
@crynobone
crynobone / caroussel.php
Created March 7, 2013 09:55
Simple Caroussel widget for Orchestra Platform.
<?php
class Caroussel extends Orchestra\Widget\Driver {
/**
* Type
*
* @access protected
* @var string
*/
@crynobone
crynobone / routes.php
Created March 8, 2013 18:11
Enabling Profiler only for Orchestra Platform Administrator Account
<?php
Route::filter('before', function ()
{
if (Orchestra::acl()->can('Manage Orchestra'))
{
Config::set('application.profiler', true);
Config::set('error.detail', true);
Profiler::attach();
}
@crynobone
crynobone / command.sh
Last active December 14, 2015 17:29
Creating custom installation schema during Installation for Orchestra Platform
php artisan orchestra::toolkit installer
<?php
function inception($iterator = 1, $range = 0, $limit = 15, $goDeeper = true) {
while ($iterator < $limit) {
echo ($range += $iterator)%10;
$goDeeper and inception($iterator, $range, ($limit - 1), false);
++$iterator;
}
print PHP_EOL;
};
@crynobone
crynobone / compile.php
Last active December 17, 2015 01:48
Compiled for Orchestra Platform 2.
<?php
$vendorDir = app('path.base').'/vendor';
return array_map('realpath', array(
/*
|--------------------------------------------------------------------------
| Additional Compiled Classes
|--------------------------------------------------------------------------
@crynobone
crynobone / .zshrc
Last active December 17, 2015 03:48
Oh My Zsh Configuration
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="crynobone"
# Set to this to use case-sensitive completion
@crynobone
crynobone / Guardfile
Created August 31, 2013 02:19
Guardfile for Laravel 4 projects.
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard :less, :all_on_start => true, :all_on_start => false, :output => "public/css" do
watch(%r[^app/assets/less/(.+\.less)$])
end
guard 'coffeescript', :input => 'app/assets/coffee'
# Refresh the browser on save
<?php
class DatabaseSeeder extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run()
<?php
class ExampleTest extends TestCase {
/**
* A basic functional test example.
*
* @return void
*/
public function testBasicExample()
@crynobone
crynobone / gist:7610646
Last active December 29, 2015 03:49
Append Menu to Orchestra Platform
<?php
$menu = Orchestra\App::menu();
$menu->add('foo', '>:home')
->link('path/foo')
->title('Foobar');
/*
Position