This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node[:deploy].each do |application, deploy| | |
#in this context deploy refers to the specific application being deployed | |
#a default attribute can ben accessed via node[:key] as you would expect | |
#the issue being that we cannot override an attribute based on the specific application being deployed | |
#I am looking for a way to say "if the deploy node has the attribute e.g. deploy[:api][:key] use that | |
#otherwise fall back to node[:api][:key] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2014-05-01T01:43:35+00:00] INFO: Starting chef-zero on port 8889 with repository at repository at /opt/aws/opsworks/current | |
One version per cookbook | |
data_bags at /var/lib/aws/opsworks/data/data_bags | |
nodes at /var/lib/aws/opsworks/data/nodes | |
[2014-05-01T01:43:35+00:00] INFO: Forking chef instance to converge... | |
[2014-05-01T01:43:36+00:00] INFO: *** Chef 11.10.4 *** | |
[2014-05-01T01:43:36+00:00] INFO: Chef-client pid: 2379 | |
[2014-05-01T01:43:40+00:00] INFO: Setting the run_list to ["opsworks_custom_cookbooks::load", "opsworks_custom_cookbooks::execute"] from JSON | |
[2014-05-01T01:43:40+00:00] WARN: Run List override has been provided. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Vapor\Theme\Composer; | |
use Composer\Package\PackageInterface; | |
use Composer\Installer\LibraryInstaller; | |
use Composer\Repository\InstalledRepositoryInterface; | |
class ThemeInstaller extends LibraryInstaller { | |
protected $type = 'vapor-theme'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "laravel/laravel", | |
... | |
"require": { | |
... | |
"vapor/core": "dev-master" | |
}, | |
... | |
"minimum-stability": "dev", | |
"repositories": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sectionDefined($section){ | |
$sections = View::getSections(); | |
return array_key_exists($section, $sections) && !empty($sections[$section]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if(sectionDefined('manageMenu')) | |
<ul class="menu"> | |
@yield('manageMenu') | |
</ul> | |
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/www$ laravel new tutorial | |
Crafting application... | |
PHP Fatal error: Class 'ZipArchive' not found in phar:///usr/local/bin/laravel/src/lib/NewCommand.php on line 52 | |
PHP Stack trace: | |
PHP 1. {main}() /usr/local/bin/laravel:0 | |
PHP 2. require() /usr/local/bin/laravel:10 | |
PHP 3. Symfony\Component\Console\Application->run() phar:///usr/local/bin/laravel/bin/craft:6 | |
PHP 4. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/laravel/src/vendor/symfony/console/Symfony/Component/Console/Application.php:121 | |
PHP 5. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/laravel/src/vendor/symfony/console/Symfony/Component/Console/Application.php:191 | |
PHP 6. Symfony\Component\Console\Command\Command->run() phar:///usr/local/bin/laravel/src/vendor/symfony/console/Symfony/Component/Console/Application.php:881 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]--> | |
<meta charset="utf-8"> | |
<title>jQuery File Upload Demo - Basic version</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="css/jquery.fileupload.css"> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="top-account-control visible-desktop"> | |
<div class="dropdown"> | |
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Welcome back, #{$writer->data('username')}!</a> | |
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> | |
<li><a tabindex="-1" href="/writer/{$writer->data('username')}"><i class="icon icon-user"></i> Writer's Profile</a></li> | |
<li><a tabindex="-1" href="/account"><i class="icon icon-cog"></i> Account Management</a></li> | |
<li class="divider"></li> | |
<li><a tabindex="-1" href="/logout"><i class="icon icon-signout"></i> Logout</a></li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* DROPDOWN CLASS DEFINITION | |
* ========================= */ | |
var toggle = '[data-toggle=dropdown]' | |
, Dropdown = function (element) { | |
var $el = $(element).on('click.dropdown.data-api', this.toggle) | |
$('html').on('click.dropdown.data-api', function () { | |
$el.parent().removeClass('open') | |
}) | |
} |