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
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
/****** 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 |
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; |
using System; | |
namespace GameOfLife { | |
public class LifeSimulation { | |
private int Heigth; | |
private int Width; | |
private bool[,] cells; | |
/// <summary> |
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 RomanNumerals | |
{ | |
class Program | |
{ | |
// Create rules in descending order | |
static Rule[] Rules = new Rule[] | |
{ | |
new Rule(1000, "M"), |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TextAdventure | |
{ | |
class Exit | |
{ |
using System; | |
using System.Threading.Tasks; | |
using RabbitMQ.Client; | |
using RabbitMQ.Client.Events; | |
namespace ConsoleApplication | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) |
#!/bin/sh | |
# | |
# Dump AWS Cognito users as CSV output. | |
# | |
# Thu Jun 20 15:31:10 CEST 2019, Andrea Leofreddi | |
# | |
me="`basename $0`" | |
if [ $# != 1 ]; then | |
echo Usage: "$me" pool_id >&2 |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TextAdventure | |
{ | |
class Exit | |
{ |