Skip to content

Instantly share code, notes, and snippets.

View wavded's full-sized avatar
🐢
Turtles all the way

Marc Harter wavded

🐢
Turtles all the way
View GitHub Profile
@wavded
wavded / eclipse-google-style-80.xml
Last active July 27, 2023 03:20
eclipse-google-style-80.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="13">
<profile kind="CodeFormatterProfile" name="GoogleStyle" version="13">
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/>
@wavded
wavded / index.html
Last active July 20, 2022 17:03
Geotab DQM-Connect Add-in
<html>
<head>
<script>
geotab.addin.drive = function () {
return {
initialize: function (api, state, cb) {
console.log("DRIVE: INIT");
cb();
},
focus: function (api, state) {
This file has been truncated, but you can view the full file.
{
"_state": {
"isInitialized": true,
"tourActive": false,
"geocode": {
"address": "34689"
},
"geocodeError": "",
"geocodeWindowActive": false,
"refineWindowActive": false,
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"l6Kx":[function(require,module,exports) {
module.exp
{"_state":{"bingKey":"AqlRkpGMghrGLhdnu26G1wuL7bUZUB3RErr4AmGzJq-0cYhzB37qSOpe0TwhBb1P","isInitialized":true,"tourActive":false,"geocode":{"address":"64701, Harrisonville, Missouri","lng":-94.33979907949315,"lat":38.64584951161476,"zoomLevel":10,"buffer":{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-94.26738463715677,38.64584951161476],[-94.26877606036102,38.63172215474074],[-94.27289685836034,38.618137704268676],[-94.27958867119861,38.60561820301196],[-94.28859433626126,38.594644768382864],[-94.29956777089033,38.585639103320226],[-94.31208727214705,38.57894729048196],[-94.32567172261912,38.574826492482636],[-94.33979907949315,38.57343506927838],[-94.35392643636717,38.574826492482636],[-94.36751088683924,38.57894729048196],[-94.38003038809596,38.585639103320226],[-94.39100382272504,38.594644768382864],[-94.40000948778768,38.60561820301196],[-94.40670130062595,38.618137704268676],[-94.41082209862527,38.63172215474074],[-94.41221352182953,38.64584951161476],[-94.41082209862527,38.659976868488
# Node build script that runs cloc, cpd, lint, test and coverage for Jenkins
#
# Outside tools include:
# jscpd: npm i jscpd -g
# cloc: npm i cloc -g
# eslint: npm i eslint -g
set -x
export NODE_ENV=production
@wavded
wavded / go-ci-build.sh
Last active March 1, 2023 23:30
Go Jenkins CI Script - golang
#!/bin/bash
# Go build script that runs cloc, cpd, lint, vet, test and coverage for Jenkins
#
# Outside tools include:
# gocov: go get github.com/axw/gocov
# gocov-xml: go get github.com/t-yuki/gocov-xml
# go2xunit: go get bitbucket.org/tebeka/go2xunit
# jscpd: npm i jscpd -g
# cloc: npm i cloc -g
exports.bufferOrderFile = function (req) {
const d = exports.createDeferred()
var name
const data = []
// Capture errors but intentially resolve to undefined
const captureErAndRes = er => { log.err(er); d.resolve() }
try {
if (!this.props.isInitialized) {
return (
<FlexRow>
<FlexColumn>
<EMap bingKey={this.props.bingKey} active={true} />
</FlexColumn>
</FlexRow>
)
}