Skip to content

Instantly share code, notes, and snippets.

@dochoffiday
dochoffiday / jeep-wrangler-yj-1991-hard-or-no-start-long-cranks-in-the-cold-explained.md
Last active August 29, 2015 14:13
Jeep Wrangler YJ 1991+: Hard or No Start/Long Cranks in the Cold Explained

#Jeep Wrangler YJ 1991+: Hard or No Start/Long Cranks in the Cold Explained

**This is a rewrite of this post: http://www.jeepforum.com/forum/f12/91-hard-no-start-long-cranks-cold-explained-490788/ - so, all credit belongs to that author!

Ok, with the weather turning colder it seems like everyday people are popping up wondering why their jeeps aren't starting like they were in the warm weather. This post is going to try and explain one of the more common problems the YJ is known for and hopefully give you all some way to narrow it down before throwing parts at it that aren't needed. The underlying problem here is that the computer is failing to power up when you turn the key on.

Symptoms

You guessed it, the jeep doesn't always start right away. Instead it seems to sit there and crank forever. Usually (but not always) this is followed by a rapid clicking sound coming from under the hood and then miraculously the jeep will start. If you're really observant you might have noticed that the check engine l

@dochoffiday
dochoffiday / PercentRounder.cs
Last active October 23, 2019 07:24
Uses the "Largest Remainder Method" to ensure rounded percentages add up to their correct total
using System;
using System.Collections.Generic;
using System.Linq;
public class PercentRounder
{
public class PercentInfo
{
public int Index;
public int Percent;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Web.UI;
public static class ControlHelpers
{
public static IEnumerable<Control> FindControlsRecursive(this Control root, string regex)
{
foreach (Control child in root.Controls)
{
using Newtonsoft.Json;
using System.Web;
using System.Web.Security;
public class LoggedInUser
{
public string FirstName { get; set; } = null;
public bool IsAdmin { get; set; } = false;
}
@dochoffiday
dochoffiday / Rando.cs
Last active September 30, 2021 15:35
C# Random based on RandomNumberGenerator | source: https://www.eimagine.com/how-to-generate-better-random-numbers-in-c-net-2/
using System;
using System.Security.Cryptography;
namespace R
{
///<summary>
/// Represents a pseudo-random number generator, a device that produces random data.
///</summary>
public class Rando : RandomNumberGenerator
{