Skip to content

Instantly share code, notes, and snippets.

View tucaz's full-sized avatar

tucaz tucaz

View GitHub Profile
#light
namespace NParser
open System
open Lexer
type NomosParser() =
static member Parse(stringToParse:string) =
let definitions = state {
do! addDefinition "String" "[a-zA-Z]+"
#light
namespace NParser
module Lexer =
open System
open System.Collections.Generic
open System.Text.RegularExpressions
open StateMonad
@tucaz
tucaz / gist:748462
Created December 20, 2010 14:59
StateMonad in F#
#light
namespace NParser
module StateMonad =
type State<'s,'a> = State of ('s -> ('a *'s))
let runState (State f) = f
type StateBuilder() =
member b.Return(x) = State (fun s -> (x,s))
member b.Delay(f) = f() : State<'s,'a>
@tucaz
tucaz / NUnitDataTest.cs
Created December 8, 2010 12:36
Generates one test method for each entry of external data using NUnit test framework
using NUnit.Framework;
namespace NUnitDataDriven
{
[TestFixture]
public class DataTests
{
[Test, TestCaseSource("GetDataForTesting")]
public void age_should_be_over_18(Data data)
{
SIF Utiltiy
SIF Upload
SIF parsing
Authentication
Authentication User
Authentication User for posting
Authentication Customer # for the user setup
Authentication Customer # from the file
XML Processing
XML translation/Parsing
reservaExistente = new ReservaBuilder()
.ComProduto(produtoReservado, 1)
.ParaCliente(null)
.ComOrigem(OrigemVenda.Parceiro)
.VigentePor(3)
.Build();
[TestClass]
public class dado_uma_nova_reserva_com_produtos_em_estoque
{
[TestInitialize]
public void quando()
{
tenho_produtos_em_estoque();
e_tenho_produto_selecionado();
e_tenho_cliente();
e_tenho_origem();
<project name="XXXXXX - HOMOLOG01">
<webURL>http://xxxxx/xxxxxxx/1.0/</webURL>
<modificationDelaySeconds>10</modificationDelaySeconds>
<sourcecontrol type="vsts" autoGetSource="true" applyLabel="true">
<server>https://xxxxxxx:8443/</server>
<username>xxxxxxx</username>
<password>xxxxx</password>
<domain>xxxxxx</domain>
<project>$/xxxx.xxxxx/Trunk</project>
<workingDirectory>C:\Arquivos de programas\CCNET\SourceCodeCheckout</workingDirectory>
<Project DefaultTargets="Run" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- ### Import non-default tasks do be used in this build file ### -->
<!--SDC Tasks Library - Open Source pack from: http://sdctasks.codeplex.com/-->
<Import Project="Microsoft.Sdc.Common.tasks"/>
<!-- FTP Task - Open Source task from: http://www.digizzle.com/Projects/FtpTask/Docs.aspx#ftptask -->
<UsingTask AssemblyFile="FtpTask.dll" TaskName="FtpTask"/>
<!-- ### 0 - This is the entry point of this build file. Run all tasks in the correct order ### -->
<Target Name="Run">
<CallTarget Targets="Clean" />
VENDO
MacBook Pro 13"
Processador Core 2 Duo 2.26GHz
Memória 4 GB 1067 MHz DDR3
VGA NVidia GeForce 9400M
Resolução Máxima 1280 x 800
HD 320 GB
Acompanha: