This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param ( | |
| [Parameter(Mandatory=$true)] | |
| [string]$source, | |
| [Parameter(Mandatory=$true)] | |
| [string]$destination | |
| ) | |
| # Get all files to be copied | |
| $files = Get-ChildItem -Path $source -Recurse -File |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define _CRT_SECURE_NO_WARNINGS | |
| struct cliente | |
| { | |
| int nif; | |
| char nome[100]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Created by SharpDevelop. | |
| * User: cpereira7 | |
| * C#, DataTable, Interfaces | |
| */ | |
| using System; | |
| using System.Data; | |
| namespace ReportGenerator | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Created by SharpDevelop. | |
| * User: cpereira7 | |
| * Date: 08-11-2015 | |
| * Time: 20:06 | |
| * C#, Npgsql | |
| */ | |
| using System; | |
| using System.Data; | |
| using System.Diagnostics; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| using System.IO; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using Novacode; | |
| namespace Csv2Doc | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static string DadosInput() | |
| { | |
| ConsoleKeyInfo key; | |
| string document = ""; | |
| Console.ForegroundColor = ConsoleColor.Green; | |
| Console.Write("\nData: "); | |
| Console.ForegroundColor = ConsoleColor.White; | |
| do | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void ExportPDF(string nome) | |
| { | |
| var wordApp = new Microsoft.Office.Interop.Word.Application(); | |
| var wordDocument = wordApp.Documents.Open(nome); | |
| wordDocument.Save(); | |
| wordDocument.ExportAsFixedFormat(nome.Replace("docx", "pdf"), Microsoft.Office.Interop.Word.WdExportFormat.wdExportFormatPDF); | |
| wordDocument.Close(Microsoft.Office.Interop.Word.WdSaveOptions.wdDoNotSaveChanges, | |
| Microsoft.Office.Interop.Word.WdOriginalFormat.wdOriginalDocumentFormat, | |
| false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function MYVLOOKUP(lookupval, lookuprange As Range, indexcol As Long) | |
| Dim r As Range | |
| Dim result As String | |
| result = "" | |
| For Each r In lookuprange | |
| If r = lookupval Then | |
| result = result & " - " & r.Offset(0, indexcol - 1) | |
| End If | |
| Next r | |
| MYVLOOKUP = result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub parse_data() | |
| Dim lr As Long | |
| Dim ws As Worksheet | |
| Dim vcol, i As Integer | |
| Dim icol As Long | |
| Dim myarr As Variant | |
| Dim title As String | |
| Dim titlerow As Integer | |
| vcol = 1 | |
| Set ws = Sheets("Folha1") |