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
/******************************************************************************* | |
* | |
* Author: Austin Schaller | |
* Module: uart.c | |
* Description: Library functions that permit utilization of LPC17xx | |
* UART0 peripheral. | |
* Documentation: "UART - TLD" | |
* | |
*******************************************************************************/ |
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
# chaotic_func.py | |
# A simple program that illustrates chaotic behavior. | |
import numpy as np | |
import matplotlib.pyplot as plt | |
def chaos(x): |
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
#include <stdio.h> | |
#include "interface.h" | |
static void print_hi(char *name) | |
{ | |
printf("Hi %s\r\n", name); | |
} | |
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
""" | |
Animation of Fourier series square-wave. | |
author: Austin Schaller | |
email: schaller.austin@gmail.com | |
license: None | |
""" | |
import numpy as np | |
import matplotlib.pyplot as plt |
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
// | |
// CreatingSound1.C - "God Save The Queen" song. | |
// | |
#include <p18f1320.h> | |
#include <delays.h> | |
#include <stdlib.h> | |
#pragma config OSC=INTIO2, WDT=OFF, LVP=OFF, DEBUG=ON | |
#define PAUSE Delay1KTCYx(50); | |
#define WHOLE 300 |
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
# This python script wizard creates a mitered bend for microwave applications | |
from __future__ import division | |
from pcbnew import * | |
import pcbnew | |
import math | |
class UWMiterFootprintWizard(pcbnew.FootprintWizardPlugin): |
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
# bloop targets | |
ifneq ($(PLATFORM),bloop) | |
$(error "Platform should be bloop when using this file!?") | |
endif | |
# Settings | |
DEFAULT_TARGET = bloop_dev_ecp5 | |
COMM_PORT ?= /dev/ttyUSB0 | |
TARGET ?= $(DEFAULT_TARGET) |
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 os | |
import alpaca_trade_api as tradeapi | |
base_url = 'https://paper-api.alpaca.markets' | |
key_id = os.getenv("ALPCA_PAPER_KEY_ID") | |
secret_key = os.getenv("ALPCA_PAPER_KEY_SECRET") | |
api = tradeapi.REST(key_id, secret_key, base_url, api_version='v2') | |
account = api.get_account() |
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 os, logging | |
import alpaca_trade_api as tradeapi | |
import threading | |
import time | |
import datetime | |
API_KEY = os.getenv('ALPCA_PAPER_KEY_ID') | |
API_SECRET = os.getenv('ALPCA_PAPER_KEY_SECRET') | |
APCA_API_BASE_URL = "https://paper-api.alpaca.markets" |
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 numpy as np | |
import pandas as pd | |
import yfinance as yf | |
import statsmodels.api as sm | |
import matplotlib.pyplot as plt | |
from matplotlib import patheffects | |
from datetime import datetime | |
OlderNewer