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
| /***** Selector Hacks ******/ | |
| /* IE6 and below */ | |
| * html #uno { color: red } | |
| /* IE7 */ | |
| *:first-child+html #dos { color: red } | |
| /* IE7, FF, Saf, Opera */ | |
| html>body #tres { color: red } |
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
| In order to get Rails to play well with Backbone you need to tell Rails not to return the root in the JSON return. This is accomplished by adding the following line to an initializer. | |
| ActiveRecord::Base.include_root_in_json = 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
| /** Creating and Deploying using Git, Github and PHP **/ | |
| Prerequisites: | |
| Server: SSH Acces, PHP, Git | |
| Local: SSH, Git | |
| 0.Create a PHP file in your project called "deploy.php" with this content: /*<?php `git pull`;*/ | |
| 1. Create Your Github Repo | |
| 2. Go to your project folder and initiate a git repository |
NewerOlder