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
Maps.prototype.label = function(marker, index) { | |
var label = new Label({ map: this.map }); | |
label.set('zIndex', index); | |
label.set('text', '12'); | |
label.bindTo('position', marker, 'position'); | |
}; | |
Label.prototype = new google.maps.OverlayView; |
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
/** | |
* @name InfoBox | |
* @version 1.1.11 [January 9, 2012] | |
* @author Gary Little (inspired by proof-of-concept code from Pamela Fox of Google) | |
* @copyright Copyright 2010 Gary Little [gary at luxcentral.com] | |
* @fileoverview InfoBox extends the Google Maps JavaScript API V3 <tt>OverlayView</tt> class. | |
* <p> | |
* An InfoBox behaves like a <tt>google.maps.InfoWindow</tt>, but it supports several | |
* additional properties for advanced styling. An InfoBox can also be used as a map label. | |
* <p> |
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
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE if Rails.env.development? |
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
if Rails.env.development? | |
Rails.application.assets.logger = Logger.new('/dev/null') | |
Rails::Rack::Logger.class_eval do | |
def call_with_quiet_assets(env) | |
previous_level = Rails.logger.level | |
Rails.logger.level = Logger::ERROR if env['PATH_INFO'] =~ %r{^/assets/} | |
call_without_quiet_assets env |
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
# ERROR: Error installing curb: | |
# ERROR: Failed to build gem native extension. | |
sudo apt-get install libcurl4-openssl-dev | |
gem install curb |
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
# cucumber.rb | |
AppName::Application.configure do | |
config.assets.debug = false | |
end | |
# bash | |
rails s | grep -v 'Started GET /assets/' |
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
git tag -d 1.0.0 | |
git push origin :refs/tags/1.0.0 |
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
rm -rf /usr/local/bin/growlnotify | |
rm -rf /usr/local/share/man/man1/growlnotify.1 |
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
import pkg_resources | |
env = pkg_resources.Environment() | |
env['lib_name'][0].version |
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
iptables -I INPUT -s x.p.t.o -j DROP |