This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i -D @babel/core @babel/preset-env @babel/preset-typescript @testing-library/jest-dom @testing-library/svelte @types/jest @types/node @types/testing-library__jest-dom babel-jest jest svelte-jester ts-jest ts-node typescript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""decorators.log_call""" | |
import inspect | |
import logging | |
from datetime import datetime | |
from functools import wraps | |
DT_NAIVE = "%Y-%m-%d %I:%M:%S %p" | |
class LogCall: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from collections import namedtuple | |
from datetime import datetime, timedelta, timezone | |
from dateutil import tz | |
DT_AWARE = "%m/%d/%y %I:%M:%S %p %Z" | |
DT_NAIVE = "%m/%d/%y %I:%M:%S %p" | |
DATE_MONTH_NAME = "%b %d %Y" | |
DATE_ISO = "%Y-%m-%d" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Parse .env file to a dictionary of environment variables.""" | |
import errno | |
import os | |
from pathlib import Path | |
from typing import Dict, List | |
def parse_dotenv_file(filepath: Path) -> Dict[str, str]: | |
"""Parse .env file to a dictionary of environment variables.""" | |
if not filepath.exists(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace AaronLuna.Common.Console | |
{ | |
using System; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
public class ConsoleProgressBar : IDisposable, IProgress<double> | |
{ | |
readonly TimeSpan _animationInterval = TimeSpan.FromSeconds(1.0 / 8); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace NetworkUtilitiesTest | |
{ | |
using AaronLuna.Common.Network; | |
using AaronLuna.Common.Extensions; | |
using System.Threading.Tasks; | |
class Program | |
{ | |
// async Main is a C# 7.1 feature, change your project settings to the | |
// new version if this is flagged as an error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace AaronLuna.TplSockets | |
{ | |
using System.Linq; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading.Tasks; | |
using AaronLuna.Common.Result; | |
public class TplSocketExample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# build_nginx_from_source.sh | |
# Author: Aaron Luna | |
# Website: alunablog.com | |
# | |
# This script downloads the source code for the latest version of NGINX | |
# (libraries required to build various NGINX modules are also downloaded) | |
# and builds NGINX according to the options specified in the ./configure | |
# command. Many of the possible configuration options are explained at | |
# the link below: |