Skip to content

Instantly share code, notes, and snippets.

View ma-henderson's full-sized avatar

Mathias Henderson ma-henderson

View GitHub Profile
@tijme
tijme / ChangeSpellCheckingLanguage.vba
Created September 30, 2020 07:13
Macro to change the language of an entire PowerPoint presentation (including speaker notes)
Option Explicit
Public Sub ChangeSpellCheckingLanguage()
Dim j As Integer, k As Integer, scount As Integer, fcount As Integer
scount = ActivePresentation.Slides.Count
For j = 1 To scount
fcount = ActivePresentation.Slides(j).Shapes.Count
For k = 1 To fcount
If ActivePresentation.Slides(j).Shapes(k).HasTextFrame Then
ActivePresentation.Slides(j).Shapes(k).TextFrame2.TextRange.LanguageID = msoLanguageIDEnglishUS
End If
@marcorichetta
marcorichetta / postgresql-manjaro.md
Last active July 24, 2024 20:22
Install PostgreSQL on Manjaro and set it up for Django
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@keshavbahadoor
keshavbahadoor / sql_to_csv.py
Created May 11, 2017 15:14
Convert SQL Query to CSV File in Python
# Generic reader method
# Reads data, prints columns, and prints each row to file
def do_query_to_csv_file(cursor, sql, csv_file):
try:
cursor.execute(sql)
file_header = ''
f = open(file_dir + csv_file + '.csv', 'w')
columns = [column[0] for column in cursor.description]
for col in columns: