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
CREATE PROCEDURE geodist (IN mylat decimal(18,12), IN mylon decimal(18,12), IN dist float) | |
BEGIN | |
declare lon1 float; | |
declare lon2 float; | |
declare lat1 float; | |
declare lat2 float; | |
set lon1 = mylon-dist/abs(cos(radians(mylat))*69); | |
set lon2 = mylon+dist/abs(cos(radians(mylat))*69); | |
set lat1 = mylat-(dist/69); | |
set lat2 = mylat+(dist/69); |
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
// Suppose we have a CSS element with a SVG into the content property | |
// .class:before { | |
// content: url('imagen.svg'); | |
// } | |
// | |
// This script replaces the SVG in the CSS for the inline CSS so you can access via JS or CSS later | |
jQuery(document).ready(function() { | |
var replaceWithSVG = function(selector, url) { | |
jQuery('').appendTo('head'); | |
// Gets the SVG file |
NewerOlder