- Edit apache config:
sudo vim /etc/apache2/apache2.conf
- Restart server:
sudo service apache2 restart
- Set permissions for content uploading (eg. wordpress media library upload isn't working):
sudo chown -R www-data:www-data /var/www
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
/* | |
Notes: | |
- Using bourbon.io | |
- Currently only supported down to IE10 :( | |
- This was helpful <http://jonibologna.com/flexbox-cheatsheet/> | |
- Bourbon flex docs <http://bourbon.io/docs/#flexbox> | |
*/ |
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
window.ondevicemotion = function(event) { | |
var accelerationX = event.accelerationIncludingGravity.x; | |
var accelerationY = event.accelerationIncludingGravity.y; | |
var accelerationZ = event.accelerationIncludingGravity.z; | |
} |
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
- (1..36).each do |i| | |
- cycle = i % 2 == 0 ? 'even' : 'odd' | |
.foo{:class => cycle} #{i} |
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
window.addEventListener("orientationchange", function() { | |
window.scrollTo(0, 0); | |
}, false); |
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 list($width, $height) = getimagesize('PATH_TO_IMAGE'); ?> | |
<!-- Value of width --> | |
<?= $width ?> | |
<!-- Value of height --> | |
<?= $height ?> |