Skip to content

Instantly share code, notes, and snippets.

public class HashTable<T, TU>
{
private LinkedList<Tuple<T, TU>>[] _items;
private int _fillFactor = 3;
private int _size;
public HashTable()
{
_items = new LinkedList<Tuple<T, TU>>[4];
}
@csim
csim / JS1.js
Last active August 27, 2020 16:43
// Please name the data types available JavaScript.
@csim
csim / CS1.cs
Last active July 30, 2024 19:43
C# Interview Questions
using System;
public class Program
{
static string location = default(string);
static DateTime time = default(DateTime);
public static void Main()
{
Console.WriteLine(location == null ? "location is null" : location);

Clint Simon

[email protected] | (425) 785-8007 | pdf | linkedin | @clintsim

First and foremost I excel at using technology to solve business problems. I've worked in technology for over 19 years, delivering custom application development projects ranging from simple websites to complex enterprise systems, with various team sizes from 1 person all the way up to 120 people.

@csim
csim / dropzone.knockout.js
Last active August 30, 2016 14:18
Dropzone Knockout binding
ko.bindingHandlers.dropzone = {
init: function(element, valueAccessor)
{
var value = ko.unwrap(valueAccessor());
var options = {
maxFileSize: 15,
createImageThumbnails: false,
};
@csim
csim / bootstrap_size_indicator.html
Created June 6, 2014 15:55
Bootstrap size indicator
<div style="position: fixed; top: 0px; left: 0px; z-index: 10000;" class="btn btn-default">
<div class="visible-xs">Extra Small (xs)</div>
<div class="visible-sm">Small (sm)</div>
<div class="visible-md">Medium (md)</div>
<div class="visible-lg">Large (lg)</div>
</div>
@csim
csim / keyboard.reg
Created April 9, 2014 15:59
Keyboard register settings
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response]
"AutoRepeatDelay"="250"
"AutoRepeatRate"="20"
"BounceTime"="0"
"DelayBeforeAcceptance"="0"
"Flags"="59"
@csim
csim / edit.ps1
Created April 9, 2014 15:59
Edit Powershell Function
function Edit {
$SublimePath = "{your path}\sublime_text.exe"
if ($args.length -eq 0) {
& $SublimePath $pwd
} else {
& $SublimePath $args
}
}
@csim
csim / clock_angle.js
Last active November 23, 2015 21:27
Clock Problem Solution
var angle = function(hour, minute) {
var hourAngle = parseFloat(hour * 30);
// take into account the movement of the hour hand between hours
hourAngle = hourAngle + parseFloat((minute / 60) * 5);
var minuteAngle = parseFloat(minute * 6);
var angle = Math.abs(hourAngle - minuteAngle);
return (angle > 180) ? 360 - angle : angle;
};
alert(angle(3, 0));
alert(angle(3, 10));
@csim
csim / div.html
Last active August 29, 2015 13:58
Embed tweets to blog
<div id="tweet"></div>