- AllowOverride all (or write a custom VirtualHost directive)
- more memory to vm & PHP
- ip routing, so we can use host routing
- ideas
- https://github.com/edanisko/vagrant-ubuntu-lamp-zend
This file contains hidden or 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
// Standard horizontal list, using word-spacing trick to remove whitespace | |
// between inline-block elements. | |
@mixin horizontal-list { | |
padding: 0; | |
text-align: center; | |
word-spacing: -1em; | |
display: table; | |
width: 100%; | |
li { |
This file contains hidden or 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
// Sticky list directive. | |
angular.module('stickylist', []).directive('stickyList', function() { | |
// Stick header by setting the position to fixed, top to 0, and adding a | |
// "sticky" class so additional CSS can be applied. Padding is added to | |
// parent <li>. | |
var stick = function($header) { | |
$header.css({position: 'fixed', top: 0}).addClass('sticky'); | |
$header.parent().css('paddingTop', $header.outerHeight()); | |
} |
This file contains hidden or 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
// ESRI directive. | |
angular.module('esri', []).directive('esri', function() { | |
return { | |
scope: { | |
address: '=', | |
zoomable: '=', | |
enabled: '=' | |
}, | |
link: function(scope, element, attrs) { | |
var map; |
This file contains hidden or 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 | |
/** | |
* Returns query with escaped args injected into query. | |
* | |
* @param string $sql The query string. | |
* @param array $args The arguments to escape, quote, and inject into the query. | |
*/ | |
function query($sql, $args = array()) { | |
$quote = function($value) use (&$quote) { |
NewerOlder