Skip to content

Instantly share code, notes, and snippets.

Test
@tenor
tenor / MyVBFile.vb
Created February 18, 2014 18:07
My VB File
My VB
@tenor
tenor / My Mira,;|max.cs
Created February 18, 2014 18:16
CS Test
noop
@tenor
tenor / blah?77.cs
Created February 18, 2014 18:17
? test
nn
@tenor
tenor / backwards.cs
Created February 26, 2014 00:18
These programs display a list of the names of single digits
// This program outputs the names of a given list of digits backwards
//
string GetDigitName(int digit)
{
switch(digit)
{
case 0: return "zero";
case 1: return "one";
case 2: return "two";
@tenor
tenor / null_conditional_operator.cs
Created December 15, 2014 17:08
C# 6 Examples on CSharpPad.com
string s = null;
s?.Length
@tenor
tenor / immutable_collections.cs
Created December 15, 2014 17:25
Immutable Collections Example on CSharpPad.com
using static
System.Collections.Immutable.ImmutableArray;
Create<int>(5,4,3,2,1)
Enumerable.Range(1,10).Select(i => new Random().Next()).ToArray()
@tenor
tenor / gist:747163
Last active September 24, 2015 12:18
using system.WriteLine
{
}
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>