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
module MyModule { | |
export class MyClass extends Vue { | |
// define instance methods | |
myMethod() { | |
// the TS-Type of "this" is defined as Instance of MyClass | |
console.log("myMethod"); | |
} | |
myOtherMethod() { | |
console.log("myOtherMethod"); |
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
// 0.12.1 | |
declare class Vue { | |
// constructor | |
constructor(instanceOpt?); | |
// static | |
static cid: number; | |
static compiler: { | |
compile: (el, options, partial, transcluded) => any; |
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
suite.add('RegExp#test', function() { | |
/o/.test('Hello World!'); | |
}) | |
.add('String#indexOf', function() { | |
'Hello World!'.indexOf('o') > -1; | |
}) | |
.add('String#match', function() { | |
!!'Hello World!'.match(/o/); | |
}) |
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 unvincenty(lnglat, brng, dist) { | |
var a = 6378137, | |
b = 6356752.3142, | |
f = 1 / 298.257223563, | |
d2r = 0.017453292519943295, | |
r2d = 57.29577951308232, | |
s = dist, | |
alpha1 = brng * d2r, | |
sinAlpha1 = Math.sin(alpha1), | |
cosAlpha1 = Math.cos(alpha1), |
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
{ | |
"name": "bower-replacement", | |
"version": "0.0.1", | |
"description": "bower replacement made simple (noDep)", | |
"scripts": { | |
"postinstall":"npm link download && node -e \"require('./package.json').download.forEach(a => require('download').apply(0,a))\" && npm unlink download" | |
}, | |
"download": [ | |
["https://gist.github.com/favicon.ico","."], | |
["https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js","src/script/org"], |
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
{"type":"Feature","properties":{"id":"8001fffffffffff"},"geometry":{"type":"Polygon","coordinates":[[[-180,90],[-180,86.19672397564817],[-34.75841798028471,81.27137179020501],[0.32561035194326043,73.31022368544396],[31.831280499087402,68.92995788193984],[62.345344956509784,69.3935964899183],[94.14309010184775,76.16304283019099],[145.5581976913369,87.3646953231962],[180,86.19672397564817],[180,90],[-180,90]]]}} | |
{"type":"Feature","properties":{"id":"8003fffffffffff"},"geometry":{"type":"MultiPolygon","coordinates":[[[[-180,79.78584885824509],[-163.45686807900947,76.14556732608256],[-131.70883908792965,69.37134141076518],[-100.82187020582201,67.53592431503803],[-66.90449925088507,72.20470505499345],[-34.758417980284634,81.27137179020501],[-180,86.19672397564817],[-180,79.78584885824509]]],[[[145.5581976913369,87.3646953231962],[180,79.78584885824509],[180,86.19672397564817],[145.5581976913369,87.3646953231962]]]]}} | |
{"type":"Feature","properties":{"id":"8005fffffffffff"},"geometry":{"type":"MultiPolygon","coordin |
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
{ | |
"date":[1234] | |
} |
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
export default ()=>{console.log("just a test")} |
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
module.exports = { | |
test(){ | |
console.log("just a test"); | |
} | |
} |