sudo chown -R $(whoami):admin /usr/local && sudo chmod -R g+rwx /usr/local
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
| { | |
| "Ansi 7 Color" : { | |
| "Green Component" : 0.73333334922790527, | |
| "Blue Component" : 0.73333334922790527, | |
| "Red Component" : 0.73333334922790527 | |
| }, | |
| "Tags" : [ | |
| ], | |
| "Ansi 12 Color" : { |
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
| Thanks for help | |
| I did: | |
| Create folder Resources | |
| Move all resources from App_GlobalResources to new folder | |
| Change all file properties: | |
| Build Action: Embedded Resource | |
| Copy to output: Copy always |
- Go to https://maps.openrouteservice.org
- Create the route
- Export GPX file
- Upload to https://www.gpsies.com/createTrack.do
- This tool will add time data
- Which allows exporting back to strava as activity
- Upload to strava as activity
- Create a route from the activity
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
| DispatchQueue.global(qos: .background).async { | |
| var x:Int = 0 | |
| while (x < Int.max){ | |
| x+=1 | |
| var y:Int = 0 | |
| while (y < Int.max){ | |
| y+=1 | |
| if (y % 10000 == 0){ | |
| DispatchQueue.main.async { | |
| self.numbers.text = "value x:\(x) y:\(y)}" |
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
| -- Creates the table | |
| CREATE TABLE geom_points ( | |
| id_pk INTEGER PRIMARY KEY | |
| ); | |
| -- Adds the columns | |
| SELECT AddGeometryColumn('geom_points','coordinates','4326','POINT',2); -- (long, lat) | |
| -- Inserts the Latitude and Longitude from Geography to Geometry. (long, lat) | |
| INSERT INTO geom_points(id_pk, coordinates) |
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
| // http://www.geodatasource.com/developers/c-sharp | |
| using System; | |
| namespace <your_namespace> | |
| { | |
| public class GeoCoordinate | |
| { | |
| public double Latitude { get; set; } |
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
| // GET api/values | |
| [HttpGet, Route("branches")] | |
| public IActionResult Branches() | |
| { | |
| //_context.Regions.Where(u=>u.Business.BusinessId == ) | |
| var regions = _context.Regions | |
| .Include(x => x.Branches) | |
| .Include(x => x.Business) | |
| .ToList(); |
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
| /usr/local/mysql/support-files |