Skip to content

Instantly share code, notes, and snippets.

View AndrewLipscomb's full-sized avatar

Andrew Lipscomb AndrewLipscomb

View GitHub Profile
const {AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip} = Recharts;
const data = [
{wangs: 1.0, uv: 3},
{wangs: 1.9999999999999, uv: 3},
{wangs: 2.0, uv: 4},
{wangs: 2.99999, uv: 4},
{wangs: 3.0, uv: 2},
{wangs: 3.99999, uv: 2},
{wangs: 4.0, uv: 5},
{wangs: 5.0, uv: 6},
@AndrewLipscomb
AndrewLipscomb / Cmd.DockAgent.xml
Created February 11, 2018 09:35
Dock Agent Encoded
<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet href="x2script.xsl" type="text/xsl"?>
<!-- Generated using X-Studio -->
<script>
<name>Cmd.DockAgent</name>
<version>308</version>
<engineversion>50</engineversion>
<description>Cmd: Manages a Sanctuary or a Dock by acquiring or distributing wares.</description>
<arguments />
<sourcetext>
@AndrewLipscomb
AndrewLipscomb / Cmd.DockAgent.xml.decoded
Last active February 11, 2018 09:31
Dock Agent Decoded
* This command frequently resets itself (gosub Reboot:) to avoid the DA getting stuck.
set script command: [COMMAND_DOCK_AGENT]
skip if [HOMEBASE]-> exists
return null
$scriptName = get script name
= [THIS]-> call script 'Lib.Gen.SetEIAutoStartParameters' : Args=null ScriptName=$scriptName
[THIS]-> connect ship command/signal [SIGNAL_ATTACKED] to script 'Sig.Attacked.DockAgent' with prio 100
@AndrewLipscomb
AndrewLipscomb / httpwindow.cpp
Created September 27, 2017 03:56
Modified Qt HTTP Example
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
@AndrewLipscomb
AndrewLipscomb / editcontrol.js
Created December 24, 2016 01:55
editcontrol.js with bug triggers
import React, { Component } from 'react';
import { Map, TileLayer, Circle, FeatureGroup } from 'react-leaflet';
import { EditControl } from '../src';
let polyline;
const subs = [ 'a', 'b', 'c', 'd' ];
export default class EditControlExample extends Component {
constructor(props) {
super(props);