Skip to content

Instantly share code, notes, and snippets.

View Coding-Enthusiast's full-sized avatar
:atom:
Busy Busy Busy

Coding Enthusiast Coding-Enthusiast

:atom:
Busy Busy Busy
  • Autarkysoft
View GitHub Profile
@Coding-Enthusiast
Coding-Enthusiast / CustomNestedLoop.cs
Last active August 25, 2016 18:40
Nested loop with variable number of loops and variable lengths
//we have a List<int> SuperList that is generated seperately and
// contains the number of loops and their lengths e.g. {3, 5, 2}
//and our loop should be like this:
//for (int i = 0; i < 3; i++)
// for (int j = 0; j < 5; j++)
// for (int k = 0; k < 2; k++)
// //use i, j, k in a function
List<int> SuperList = new List<int>();
int max = 1;
@Coding-Enthusiast
Coding-Enthusiast / Guess My Bitcoin.cs
Last active September 18, 2016 12:33
Guess My Bitcoin, creating the keyArray using C#
theKey[0] = new PKeyChar('5');//5
theKey[1] = new PKeyChar('J');//Steve Jobs
theKey[2] = new PKeyChar('k');//kevlar
theKey[3] = new PKeyChar(new char[] { 'P', '3' });//Pi, 3.14
theKey[4] = new PKeyChar('A');//Atari
theKey[5] = new PKeyChar('p');//parachute
theKey[6] = new PKeyChar('j');//Jet, F16, Mig
theKey[7] = new PKeyChar('w');//wing from the previous pic
theKey[8] = new PKeyChar('G');//Gutenberg
theKey[9] = new PKeyChar('Y');//Yo-Yo