Skip to content

Instantly share code, notes, and snippets.

View ddarren's full-sized avatar

Darren Smith ddarren

View GitHub Profile
@ddarren
ddarren / react-native-maps+0.27.1.patch
Created December 17, 2020 22:06
Patch that preserves stroke width, stroke color, fill color, and marker color properties in geojson for react-native-maps
diff --git a/node_modules/react-native-maps/lib/components/Geojson.js b/node_modules/react-native-maps/lib/components/Geojson.js
index e72b56b..ddb69e2 100644
--- a/node_modules/react-native-maps/lib/components/Geojson.js
+++ b/node_modules/react-native-maps/lib/components/Geojson.js
@@ -93,17 +93,69 @@ const makeCoordinates = feature => {
}
};
+const doesOverlayContainProperty = (overlay, property) => {
+ // Geojson may have 0 for the opacity when intention is to not specify the
# based off of http://derekdevries.com/2009/04/13/rails-seed-data/
require 'active_record/fixtures'
namespace :deploy do
desc "Deploy staging to heroku"
task :staging do
root = Rake.application.original_dir
@ddarren
ddarren / ClientSideValidations_TwitterBoostrap_SimpleForm.js
Created May 15, 2012 21:35
Script to Make Client Side Validations Work w/ Twitter Bootstrap & Simple Form
(function() {
$(document).ready(function() {
return $("div.control-group").focusout(function() {
if (!$("div.control-group").hasClass("error")) {
return $(this).addClass("success");
}
});
});
}).call(this);