Skip to content

Instantly share code, notes, and snippets.

@vcalderon2009
vcalderon2009 / define_sql_table.py
Created April 20, 2023 17:59
Defining a SQL table using SQLAlchemy ORM
from sqlalchemy import (
Boolean,
Column,
DateTime,
Numeric,
String,
false,
delete,
)
from sqlalchemy import create_engine
@vcalderon2009
vcalderon2009 / get_utc_time.py
Created April 20, 2023 17:54
Function to get the UTC time in Python
from typing import Optional, Union
from datetime import datetime
from dateutil import tz
def get_utc_time(utc_now_time_tz: Optional[Union[None, str]] = None):
"""
Function to determine the UTC time now.
Parameters
@vcalderon2009
vcalderon2009 / flake8-error-codes.md
Created November 26, 2019 22:07
Medusa: Flake8 (and plugins) error codes reference

Error codes reference

pycodestyle

Indentation
  • E101: indentation contains mixed spaces and tabs
  • E111: indentation is not a multiple of four
  • E112: expected an indented block
  • E113: unexpected indentation
  • E114: indentation is not a multiple of four (comment)
  • E115: expected an indented block (comment)
@vcalderon2009
vcalderon2009 / scopes.txt
Created September 26, 2017 05:58 — forked from iambibhas/scopes.txt
Sublime Text 2: Snippet scopes
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee

#HTML presentation tools

There are many HTML presentation tools and they are all created for slightly different reasons. Here's an overview. Please let me know if I forgot any.

##CSSS

CSS-based SlideShow System