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
function showPosition(position) { | |
document.write('Latitude: '+position.coords.latitude+'Longitude: '+position.coords.longitude); | |
} | |
function showError(error) { | |
switch(error.code) { | |
case error.PERMISSION_DENIED: | |
alert("User denied the request for Geolocation."); | |
break; |
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
.text-xs-left { text-align: left; } | |
.text-xs-right { text-align: right; } | |
.text-xs-center { text-align: center; } | |
.text-xs-justify { text-align: justify; } | |
@media (min-width: @screen-sm-min) { | |
.text-sm-left { text-align: left; } | |
.text-sm-right { text-align: right; } | |
.text-sm-center { text-align: center; } | |
.text-sm-justify { text-align: justify; } |
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
/** | |
* Get a center latitude,longitude from an array of like geopoints | |
* | |
* @param array data 2 dimensional array of latitudes and longitudes | |
* For Example: | |
* $data = array | |
* ( | |
* 0 = > array(45.849382, 76.322333), | |
* 1 = > array(45.843543, 75.324143), | |
* 2 = > array(45.765744, 76.543223), |
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
use your command line tool to log into mysql with: | |
mysql -u root -p -h localhost | |
then ... | |
LOAD DATA LOCAL INFILE '/path/to/file.csv' | |
INTO TABLE databasename.yourtable | |
FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' | |
IGNORE 1 LINES |