Skip to content

Instantly share code, notes, and snippets.

View luan122's full-sized avatar

Luan da Silva Santos luan122

View GitHub Profile
@luan122
luan122 / mkdocs_azure_wiki_sync.yml
Created September 13, 2025 00:52 — forked from legendof-selda/mkdocs_azure_wiki_sync.yml
GitHub action which syncs mkdocs to azure devops wiki.
name: Publish docs via GitHub Pages
# syncs your mkdocs markdown files with azure devops wiki.
# NOTE: this doesn't work with automated markdown files which maybe generated in your case
# this also doesn't deal with ordering
on:
push:
branches:
- develop
workflow_dispatch:
@luan122
luan122 / dataGridExcelExport.cs
Created January 14, 2016 18:30
Exemplo pratico para exportar dados de uma datagridview para um arquivo .xls em C#
internal bool exportaExcel2(DataGridView dGv, string filename)
{
bool retorno = false;
// Cria o Excel.
Excel.Application Ex = new Excel.Application();
Excel.Workbook Wb = Ex.Workbooks.Add(Type.Missing);
Excel.Worksheet Ws = null;
//Este DataTable está aqui para absorver os dados do DataGrid e ser tratado dentro do Excel
DataTable dt = new DataTable();
//Lista usada para gerar as colunas