This file contains 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
shouldComponentUpdate(nextProps, nextState) { | |
if(window.__server) return true; | |
this.decideIfWeShouldShow(nextProps, nextState); | |
if ( nextState.actuallyShowing ) return true; | |
return false; | |
} |
This file contains 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
require 'formula' | |
class Sipp < Formula | |
homepage 'http://sipp.sourceforge.net/' | |
url 'http://downloads.sourceforge.net/project/sipp/sipp/3.4/sipp-3.3.990.tar.gz' | |
sha1 'b2637cb72556595253bbdd4a68cc974c9ac1d92e' | |
def install | |
system "./configure", "--with-pcap" | |
system "make", "DESTDIR=#{prefix}" | |
bin.install "sipp" |
This file contains 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
import sublime | |
import sublime_plugin | |
import re, inspect, os | |
import shared | |
class OpenTranslationFileCommand(sublime_plugin.WindowCommand): | |
def run(self): | |
if not self.window.active_view(): | |
return |
This file contains 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
import sublime | |
import sublime_plugin | |
import re, inspect, os | |
import shared | |
class OpenRspecFileCommand(sublime_plugin.WindowCommand): | |
def run(self): | |
if not self.window.active_view(): | |
return |
This file contains 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
module ActiveModel | |
# When you have a module | |
# | |
# module Foo | |
# extend ActiveModel::InjectValidations | |
# | |
# inject_validations do |c| | |
# c.validates_presence_of :price | |
# end | |
# end |