Skip to content

Instantly share code, notes, and snippets.

M_J_O_N_E_S orangutanboy

Block or report user

Report or block orangutanboy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@orangutanboy
orangutanboy / Explicit_and_override.cs
Created Sep 19, 2012
ToString interface overrides
View Explicit_and_override.cs
using System;
namespace Demo
{
class Program
{
static void Main(string[] args)
{
var myClass = new MyClass();
@orangutanboy
orangutanboy / DoubleBuffered
Created Sep 2, 2012
Sample app showing DoubleBuffered property on DataGridView
View DoubleBuffered
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows.Forms;
namespace DoubleBufferExample
{
public partial class TestForm : Form
@orangutanboy
orangutanboy / Calculator.cs
Created May 20, 2012
133 character bowling game score calc
View Calculator.cs
void c(int[]b,out int t){int n,v,i=t=0,X=10;for(;i<19;i+=2){n=b[i]+b[i+1];v=b[i+2];t+=(n<X)?n:X+v;if(b[i]>9)t+=b[i+(i>16|v<X?3:4)];}}
@orangutanboy
orangutanboy / MyRefactor
Created May 13, 2012
Refactor of a monster switch statement
View MyRefactor
using System;
using System.Collections.Generic;
namespace Monster
{
public class MonsterClass
{
public void DoTask()
{
MySqlConnection oSqlConn = new MySqlConnection();
You can’t perform that action at this time.