Skip to content

Instantly share code, notes, and snippets.

View omaciel's full-sized avatar
🎯
Learning

Og Maciel omaciel

🎯
Learning
View GitHub Profile
@omaciel
omaciel / main.go
Created August 15, 2023 23:49 — forked from majest/main.go
Sqlite with GORM using UUID
package main
import (
"database/sql"
sqliteGo "github.com/mattn/go-sqlite3"
uuid "github.com/satori/go.uuid"
log "github.com/sirupsen/logrus"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"gorm.io/gorm/logger"
@omaciel
omaciel / rst_to_md.sh
Last active December 8, 2020 17:47 — forked from ldong/rst_to_md.sh
Convert rst to md files
# This script was created to convert a directory full
# of rst files into md equivalents. It uses
# pandoc to do the conversion.
#
# 1. Install pandoc from http://johnmacfarlane.net/pandoc/
# 2. Copy this script into the directory containing the .rst files
# 3. Ensure that the script has execute permissions
# 4. Run the script
#
# By default this will keep the original .rst file
@omaciel
omaciel / spreadsheet.py
Created December 29, 2017 19:40 — forked from alchemyst/spreadsheet.py
Spreadsheet in 100 lines of Python
#!/usr/bin/env python
import tkinter as tk
import math
import re
from collections import ChainMap
Nrows = 5
Ncols = 5
@omaciel
omaciel / .coveragerc
Created December 5, 2017 22:27 — forked from mattbennett/.coveragerc
coverage subprocess
[run]
branch = True
source = .
import os
import re
def edit_case_importance():
for dirpath, _, filenames in os.walk('tests/foreman'):
for filename in filenames:
path = os.path.join(dirpath, filename)
if path.endswith('.py') and '__init__.py' not in path:
print(path)