Skip to content

Instantly share code, notes, and snippets.

View jbuedel's full-sized avatar

Josh Buedel jbuedel

  • AMS Controls
  • Saint Louis, MO
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jbuedel on github.
  • I am joshbuedel (https://keybase.io/joshbuedel) on keybase.
  • I have a public key whose fingerprint is 5256 DCCF F1E3 0F86 D1D3 5BE7 5D5F 07E0 C325 02F9

To claim this, I am signing this object:

@jbuedel
jbuedel / gist:7805038838eee34447a7
Created June 9, 2014 23:00
My Boxstarter script
cinst nodejs.install
npm install bless -g
@jbuedel
jbuedel / gist:5188520
Created March 18, 2013 16:27
The view model *is* the list vs. the view model *has* the list.
public class PaymentHistory : List<PaymentHistory.PaymentItem>
{
public class PaymentItem
{
public DateTime TransDate { get; set; }
}
public List<int> YearsAvailable { get; set; }
}
@jbuedel
jbuedel / gist:4026713
Created November 6, 2012 18:56
A loop in sass
$marginDirections: left, right, bottom, top;
$marginValues: 10, 20, 30, 40, 50, 60;
@for $marginDirection from 1 through length($marginDirections) {
@for $marginValue from 1 through length($marginValues) {
.add-#{$marginDirection}-#{$marginValue} {
margin-#{$marginDirection}: #{$marginValue}px;
}
}
}
@jbuedel
jbuedel / gist:1677782
Created January 25, 2012 18:34
Exception from TeamCity when tcWebHooks plugin is installed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webHookProjectTabExtension' defined in URL [jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/TeamCity/WEB-INF/lib/tcWebHooks-0.7.25.115.jar!/META-INF/build-server-plugin-WebHookListener.xml]: Unsatisfied dependency expressed through constructor argument with index 3 of type [jetbrains.buildServer.web.openapi.PluginDescriptor]: : No unique bean of type [jetbrains.buildServer.web.openapi.PluginDescriptor] is defined: Unsatisfied dependency of type [interface jetbrains.buildServer.web.openapi.PluginDescriptor]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [jetbrains.buildServer.web.openapi.PluginDescriptor] is defined: Unsatisfied dependency of type [interface jetbrains.buildServer.web.openapi.PluginDescriptor]: expected at least 1 matching bean
at org.springframework.beans.factory.supp
@jbuedel
jbuedel / gist:1604281
Created January 13, 2012 02:22
Risk board assignment in F#
// Type defs and helper methods - basic oo stuffs
type State =
| State of string * State seq
and User =
| User of string * int
let getContigs state =
match state with
| State(_,contigs) -> contigs
@jbuedel
jbuedel / Linq Challenge
Created June 4, 2011 04:28
Josh's Submission To The Linq Challenge
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Class1
{
// This first attempt is simply a straight port to linq. I've kept the original optimization
// that short circuited on the first matching id.
static IList<ComponentInfo> ProcessWordComponentAndUploadInfos_ByJosh_Attempt1(