Skip to content

Instantly share code, notes, and snippets.

Mani chintamanil

Block or report user

Report or block chintamanil

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ie-css-hacks.css
/*
* Property prefix hacks
*/
/* IE6 only - any combination of these characters */
_ - £ ¬ ¦
/* IE6/7 only - any combination of these characters */
@lucasfais
lucasfais / gist:1207002
Created Sep 9, 2011
Sublime Text 2 - Useful Shortcuts
View gist:1207002

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@nuxlli
nuxlli / sublime_text_2_useful_shortcuts.md
Created Sep 9, 2011 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts
View sublime_text_2_useful_shortcuts.md

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@rstacruz
rstacruz / index.md
Last active Oct 6, 2019
Rails models cheatsheet
View index.md

Rails Models

Generating models

$ rails g model User

Associations

belongs_to
has_one
@jaysonrowe
jaysonrowe / FizzBuzz.js
Created Jan 11, 2012
FizzBuzz JavaScript solution
View FizzBuzz.js
for (var i=1; i <= 20; i++)
{
if (i % 15 == 0)
console.log("FizzBuzz");
else if (i % 3 == 0)
console.log("Fizz");
else if (i % 5 == 0)
console.log("Buzz");
else
console.log(i);
View browser hacks
/***** Selector Hacks ******/
/* IE6 and below */
* html #uno { color: red }
/* IE7 */
*:first-child+html #dos { color: red }
/* IE7, FF, Saf, Opera */
@mattpage
mattpage / gist:5854124
Created Jun 24, 2013
IE8 javascript hacks
View gist:5854124
//http://stackoverflow.com/questions/1695376/msie-and-addeventlistener-problem-in-javascript
function addEventListener(el, eventName, eventHandler) {
if (el.addEventListener){
el.addEventListener(eventName, eventHandler, false);
}
else if (el.attachEvent){
//ie8 does not support addEventListener
el.attachEvent('on'+eventName, eventHandler);
}
@dwayne
dwayne / 01-intro.md
Last active Mar 16, 2019
My notes from the book "ng-book: The Complete Book on AngularJS by Ari Lerner".
View 01-intro.md

Introduction

Author: Ari Lerner.

AngularJS offers a single framework that can be used to build dynamic, client-centric applications. It provides:

  • Module support
  • DOM manipulation
  • Animations
  • Templating
@TSiege
TSiege / The Technical Interview Cheat Sheet.md
Last active Oct 17, 2019
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat Sheet.md

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo since a gist is too difficult to maintain as an open source endevaor and there is no way to version it. I have updated below, but I will not be able to keep this one up to date so please checkout the repo instead. The below is just for some preservation for those who stumble across here.






\

You can’t perform that action at this time.