Skip to content

Instantly share code, notes, and snippets.

View kevinviana's full-sized avatar
😄
I may be slow to respond.

Kévin Viana kevinviana

😄
I may be slow to respond.
View GitHub Profile
@carlosfaddul
carlosfaddul / Excel_Sheets_To_JSON.vb
Last active January 10, 2023 11:21
Converte a Tabela ativa do excel para um aquivo JSON
Public Sub SheetsToJSON()
Dim fso As Object
Set fso = CreateObject("Scripting.FileSystemObject")
jsonFilename = fso.GetBaseName(ActiveWorkbook.Name) & ".json" 'Aqui será salvo o nome do arquivo JSON baseado na sua tabela ativa do Excel'
fullFilePath = Application.ActiveWorkbook.Path & "\" & jsonFilename 'Aqui definirá o caminho que será salvo o arquivo JSON gerado'
Dim fileStream As Object
Set fileStream = CreateObject("ADODB.Stream")
fileStream.Type = 2
fileStream.Charset = "utf-8" 'Define o formato do charset que será exportado o arquivo'
@rajasharma1603
rajasharma1603 / material.module.ts
Created April 11, 2020 15:14
One single module import file to import all Angular Material Modules.
// IMPORT ALL MATERIAL COMPONENTS
// #STEPS
// 1- Import this file as module in app.module.ts ==> import { MaterialModule } from './xyz/abc';
// 2- Initialize it in imports:[] array ==> imports:[MaterialModule]
import { NgModule } from '@angular/core';
// *************** FORM CONTROLS ***************
import {MatAutocompleteModule} from '@angular/material/autocomplete';
import {MatCheckboxModule} from '@angular/material/checkbox';
import {MatDatepickerModule} from '@angular/material/datepicker';
@Meorawr
Meorawr / async.lua
Last active September 8, 2024 20:17
Lua 5.1 Async/Await
#!/usr/bin/lua5.1
--- Async/Await for Lua 5.1
-- This script implements async/await functions for Lua, allowing tasks to
-- be queued and scheduled independently.
--
-- This is just an example and has a bunch of issues, isn't tested, isn't
-- even actually used anywhere; I basically just got bored and had one of
-- those "what if?" type ideas 6 hours ago.
local co_create = coroutine.create
<h1 align="center">
<br>
<img src="YOUR_LOGO_URL" alt="YOUR_PROJECT_NAME" width="120">
<br>
<br>
YOUR_PROJECT_NAME
</h1>
<p align="center">A little description about your project</p>
<h1 align="center">
<br>
<img src="YOUR_LOGO_URL" alt="YOUR_PROJECT_NAME" width="120">
<br>
<br>
YOUR_PROJECT_NAME
</h1>
<p align="center">A little description about your project</p>