Skip to content

Instantly share code, notes, and snippets.

View martypitt's full-sized avatar
:octocat:
Building Orbital and Taxi - https://orbitalhq.com

Marty Pitt martypitt

:octocat:
Building Orbital and Taxi - https://orbitalhq.com
View GitHub Profile
@martypitt
martypitt / test.md
Created October 24, 2023 07:11
Markdown test

New Topic

New Title

{collapsible="true" default-state="expanded"}

Content

A note highliughting important information

{style="warning"}

@martypitt
martypitt / pom.xml
Last active October 30, 2018 22:01
Trade Compliance with Vyne
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.5.RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@martypitt
martypitt / bootstrap.yml
Created January 1, 2018 22:01
Bootstrap a freshly minted ubuntu 16.04 - 17.10 box for ansible
---
- hosts: all
become: yes
become_user: root
gather_facts: no
pre_tasks:
- name: 'install missing modules'
raw: sudo apt-get -y install python-simplejson aptitude
import {Injectable} from "@angular/core";
import {environment} from "app/../environments/environment";
import {Observable, ReplaySubject, Subject} from "rxjs";
const SockJS = require('sockjs-client');
const Stomp = require('stompjs');
// TODO : Find sockJs / StompJs typings
interface StompClient {
connect(params: any, connectHandler: (frame: Frame) => void, errorHandler: (error: any) => void)
subscribe(topic: string, handler: (value: Frame) => void)
{
"id": "83917940159_10153810543845160",
"from": {
"category": "Community",
"category_list": [
{
"id": "2612",
"name": "Community"
}
],
/// <reference path="typescript.api.d.ts" />
import tsapi = require("typescript.api");
export class Example {
}
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="800px" height="311.002px" viewBox="0 144.5 800 311.002" enable-background="new 0 144.5 800 311.002"
xml:space="preserve">
<g>
<path d="M311.11,144.5c34.571,0,69.133,0,103.707,0C587.188,182.275,743.864,144.458,800,292.593c0,4.948,0,9.864,0,14.812
c-70.312,6.101-77.84-50.533-148.146-44.428c10.745,63.305,83.185,64.935,118.515,103.666
c-36.232,30.429-85.749-51.858-148.147-44.428c-13.367,23.996,34.687,112.851,88.893,118.479c0,4.945,0,9.859,0,14.808
package com.mangofactory.example;
import java.util.Map;
import lombok.SneakyThrows;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.type.TypeFactory;
import org.codehaus.jackson.type.JavaType;
import org.springframework.data.redis.hash.HashMapper;
@martypitt
martypitt / gist:6183822
Last active December 20, 2015 19:29
These tests fail, demonstrating either a bug somewhere in the Jackson / Spring-Data-Redis stack, or a configuration problem within my code. It requires Lombok to run
package com.mangofactory.example
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.hasSize;
import static org.junit.Assert.assertThat;
import java.util.Collections;
import java.util.List;