Skip to content

Instantly share code, notes, and snippets.

import sys
import tokenize
class DoubleQuotesChecker:
msg = "single quotes detected, use double quotes instead"
def __init__(self):
self.violations = []
def find_violations(self, filename, tokens):
@pravin-d
pravin-d / gist:770abd675b8cf1bdcd9a684c974fc76a
Created June 27, 2016 10:59 — forked from BJTerry/gist:32b491dc30788ec371e9
A naive way to get JQuery slide/fade animations in React.js
var JQuerySlide = React.createClass({
componentWillEnter: function(callback){
var $el = $(this.getDOMNode())
$el.slideDown(function(){
callback();
});
},
componentWillLeave: function(callback){
var $el = $(this.getDOMNode());
$el.slideUp(function(){