This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| <?php | |
| /** | |
| * Custom configuration bootstrap file for ExpressionEngine | |
| * | |
| * Place config.php in your site root | |
| * Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/config.php | |
| * Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/database.php | |
| * If you have moved your site root you'll need to update the require_once path | |
| * |
| /** | |
| * PE to use SVG as CSS background image with fallback for IE8/7/6 | |
| * | |
| * Using SVG as CSS background image to display | |
| * resolution-independent logos or icons is pretty | |
| * awesome but does completely fail on IE8/7/6 | |
| * | |
| * The trick: | |
| * All three IE versions don't support rgba color values. | |
| * By defining a rgba background color together with the |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Responsive Design Testing</title> | |
| <style> | |
| body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
| .wrapper { width: 6000px; } | |
| .frame { float: left; } | |
| h2 { margin: 0 0 5px 0; } |
| #!/bin/sh | |
| ## | |
| # This is a script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # Run in interactive mode with: | |
| # $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)" | |
| # | |
| # or run it without prompt questions: |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| .h1 { @extend h1; } | |
| .h2 { @extend h2; } | |
| .h3 { @extend h3; } | |
| .h4 { @extend h4; } | |
| .h5 { @extend h5; } | |
| .h6 { @extend h6; } |
| var $dateTime = new DateTime(); | |
| $dateTime->setTimezone(new DateTimeZone('America/New_york')); | |
| $dateTime->setTimestamp(time()); | |
| $isDst = (bool)$dateTime->format('I') ? "y" : "n"; | |
| $conf['daylight_savings'] = $isDst; |
| set :deploy_to, "/var/www/default" | |
| set :branch, 'master' | |
| #Remote DB info | |
| set :dbuser, "" | |
| set :dbname, "" | |
| set :dbhost, "" | |
| set :dbpass, "" |
| (function($) { | |
| $.fn.smoothScroll = function() { | |
| return this.on('click', function() { | |
| var hash = $(this).attr('href'); | |
| var dest = $(hash).offset(); | |
| $('html:not(:animated),body:not(:animated)').animate({scrollTop: dest.top, scrollLeft: dest.left}, 500, function() { | |
| window.location.hash = hash; |