Skip to content

Instantly share code, notes, and snippets.

View DavidIAm's full-sized avatar

David Ihnen DavidIAm

View GitHub Profile
let mapleader = ","
nnoremap <leader>l :tabnext<return>
nnoremap <leader>h :tabprev<return>
map <F2> :tabprev<return>
map <F3> :tabnext<return>
set expandtab
set sw=4
set ts=4
syntax enable
<?xml version="1.0" encoding="UTF-8"?>
<AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/encoding/ AnyConnectProfile.xsd">
<ClientInitialization>
<UseStartBeforeLogon UserControllable="false">false</UseStartBeforeLogon>
<AutomaticCertSelection UserControllable="false">true</AutomaticCertSelection>
<ShowPreConnectMessage>false</ShowPreConnectMessage>
<CertificateStore>All</CertificateStore>
<CertificateStoreOverride>false</CertificateStoreOverride>
<ProxySettings>Native</ProxySettings>
<AllowLocalProxyConnections>true</AllowLocalProxyConnections>
@DavidIAm
DavidIAm / Face.java
Created February 18, 2016 19:22
Yatzy Kata for your review
package testpackage;
// This enum represents the sides on a six sided die.
// A die face can only be one of these six values.
// Not five.
// Not seven.
// Eight is right out.
public enum Face {
ONE, TWO, THREE, FOUR, FIVE, SIX;
public Integer value() {
@DavidIAm
DavidIAm / animaltree
Last active November 29, 2015 07:34
animal tree program
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
/* Structure is basic binary tree
* Data in node is an animal and a distinguisher question
* branches are 'yes' and 'no'
* Business rules:
* - if distinguisher is null, ask about the animal to determine win
#!/usr/bin/perl -w
use XML::DOM;
my $d = new XML::DOM::Document;
my $R = $d->appendChild($d->createElement('REQUEST'))->appendChild($d->createElement('STOREREQUEST'));
$R->appendChild($d->createElement('LATITUDE'))->appendChild($d->createTextNode('lati'));
$R->appendChild($d->createElement('LONGITUDE'))->appendChild($d->createTextNode('long'));
$R->appendChild($d->createElement('TYPE'))->appendChild($d->createTextNode('type'));