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
| <profiles> | |
| <profile> | |
| <id>windows code generation</id> | |
| <activation> | |
| <os> | |
| <family>Windows</family> | |
| </os> | |
| </activation> | |
| <build> | |
| <plugins> |
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
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <configuration> | |
| <executable>python3</executable> | |
| <arguments> | |
| <argument>${project.basedir}/generateSources.py</argument> | |
| </arguments> |
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
| /* This was naughty, but I minified the geolib library. It's here and it's awesome though: https://www.npmjs.com/package/geolib */ | |
| !function(t,e){"use strict";function i(){}i.TO_RAD=Math.PI/180,i.TO_DEG=180/Math.PI,i.PI_X2=2*Math.PI,i.PI_DIV4=Math.PI/4;var a=Object.create(i.prototype,{version:{value:"2.0.21"},radius:{value:6378137},minLat:{value:-90},maxLat:{value:90},minLon:{value:-180},maxLon:{value:180},sexagesimalPattern:{value:/^([0-9]{1,3})°\s*([0-9]{1,3}(?:\.(?:[0-9]{1,2}))?)'\s*(([0-9]{1,3}(\.([0-9]{1,4}))?)"\s*)?([NEOSW]?)$/},measures:{value:Object.create(Object.prototype,{m:{value:1},km:{value:.001},cm:{value:100},mm:{value:1e3},mi:{value:1/1609.344},sm:{value:1/1852.216},ft:{value:100/30.48},in:{value:100/2.54},yd:{value:1/.9144}})},prototype:{value:i.prototype},extend:{value:function(t,e){for(var i in t)void 0!==a.prototype[i]&&!0!==e||("function"==typeof t[i]&&"function"==typeof t[i].bind?a.prototype[i]=t[i].bind(a):a.prototype[i]=t[i])}}});void 0===Number.prototype.toRad&&(Number.prototype.toRa |
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
| package main | |
| import ( | |
| "math/rand" | |
| "os" | |
| "time" | |
| "github.com/ajstarks/svgo" | |
| ) |
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
| { | |
| "nodes": [ | |
| { | |
| "line": "RD", | |
| "name": "Shady Grove - RD", | |
| "unique_id": "RDA15" | |
| }, | |
| { | |
| "line": "RD", | |
| "name": "Rockville - RD", |
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
| # -*- coding: utf-8 -*- | |
| class X(object): | |
| things = { | |
| 'a': 1, | |
| 'b': 2, | |
| 'c': 3 | |
| } |
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
| class a(object): | |
| def do_something(self): | |
| print("Something from A") | |
| class b(a): | |
| def do_something(self): | |
| print("Something from B (1)") | |
| super(self.__class__, self).do_something() | |
| print("Something from B (2)") |
NewerOlder