This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports System | |
Imports EnvDTE | |
Imports EnvDTE80 | |
Imports EnvDTE90 | |
Imports EnvDTE90a | |
Imports EnvDTE100 | |
Imports System.Diagnostics | |
Public Module Settings | |
Private Const FONT_SIZE_CATEGORY As String = "FontsAndColors" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Serialization.Text | |
namespace Drawing.Geometry | |
{ | |
public class GeometryConverter : IJsonConverter | |
{ | |
public object Deserialize(IDictionary<string, object> dictionary, Type type, IJsonSerializer serializer) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thedevstop.utilities | |
{ | |
import flash.utils.Dictionary; | |
public class HashMap extends Dictionary | |
{ | |
public function get(key:*):* | |
{ | |
return this[key]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface ICallback { | |
(factory:JsFactory, scopeName:string):any; | |
} | |
interface ICallbackDictionary { | |
[name:string]:ICallback; | |
} | |
class JsFactory { | |
static DefaultScopeName = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IKeyValueStore | |
{ | |
object this[string key] { get; set; } | |
} | |
public static class KeyValueStoreExtensions | |
{ | |
public static DateTime GetDateTime(this IKeyValueStore store, string key) | |
{ | |
var val = store[key]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IRunProcesses<T> | |
{ | |
void RegisterProcess(IProcessItems<T> process); | |
} | |
public interface IProcessItems<T> | |
{ | |
void Process(IEnumerable<T> items); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var unsortedNames = GetNames(); | |
var sortedNames = SortNames(unsortedNames); | |
PrintArray(sortedNames); | |
} | |
// Formats and sorts an array of name strings. | |
// Input: An unordered array of strings in the format '{LastName}, {FirstName}' | |
// Output: An ordered array of strings in the format '{FirstName} {LastName}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
function createObject(kvps) { | |
var object = {}; | |
for (var index = 0; index < kvps.length; index++) { | |
var value = kvps[index].value; | |
value = value == undefined ? null : value; | |
object[kvps[index].key] = value; | |
} | |
return object; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ConfidenceStore<T> where T : class | |
{ | |
public event EventHandler<EventArgs<T>> Changed; | |
private Queue<T> queue; | |
private int length; | |
private int threshold; | |
private T confidentItem; | |
public ConfidenceStore(int length, int threshold) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TestNullCheckingExpressions | |
{ | |
class Program |
OlderNewer