Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
using System; | |
namespace RomanNumerals | |
{ | |
class Program | |
{ | |
// Create rules in descending order | |
static Rule[] Rules = new Rule[] | |
{ | |
new Rule(1000, "M"), |
internal static IEnumerable<string> ReadLines(this string s) | |
{ | |
string line; | |
using (var sr = new StringReader(s)) | |
while ((line = sr.ReadLine()) != null) | |
yield return line; | |
} |
using System; | |
namespace GameOfLife { | |
public class LifeSimulation { | |
private int Heigth; | |
private int Width; | |
private bool[,] cells; | |
/// <summary> |
using (Microsoft.VisualBasic.FileIO.TextFieldParser parser = new Microsoft.VisualBasic.FileIO.TextFieldParser("C:\\testfile.txt")) { | |
parser.TextFieldType = Microsoft.VisualBasic.FileIO.FieldType.Delimited; | |
parser.SetDelimiters(","); | |
string[] currentRow = null; | |
while (!parser.EndOfData) { | |
try { | |
currentRow = parser.ReadFields(); | |
string currentField = null; | |
foreach (string field in currentRow) { | |
currentField = field; |
/****** Object: UserDefinedTableType [dbo].[IndexedDictionary] ******/ | |
IF EXISTS (SELECT * FROM sys.types st JOIN sys.schemas ss ON st.schema_id = ss.schema_id WHERE st.name = N'IndexedDictionary' AND ss.name = N'dbo') | |
DROP TYPE [dbo].[IndexedDictionary] | |
GO | |
/****** Object: UserDefinedTableType [dbo].[IndexedDictionary] ******/ | |
CREATE TYPE [dbo].[IndexedDictionary] AS TABLE( | |
[Index] [int] NULL, | |
[Key] [nvarchar](255) NULL, | |
[Value] [nvarchar](255) NULL |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000