Skip to content

Instantly share code, notes, and snippets.

@marcialca
marcialca / hacks.css
Created October 25, 2012 05:15
Selector Hacks by Paul Irish
/***** 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 }
@marcialca
marcialca / gist:3843274
Created October 6, 2012 00:45
[Ruby] [JS] Nice Rails JSON with Backbone.js
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
@marcialca
marcialca / Creating and Deploying using Git Github and PHP
Created October 2, 2012 06:07
Creating and Deploying using Git, Github and PHP
/** 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