Skip to content

Instantly share code, notes, and snippets.

@bigbaer
bigbaer / visualize_data.py
Created December 9, 2020 18:55 — forked from richard303d/visualize_data.py
Visualize pandas_datareader dataframes
#Visualize the closing price history
import matplotlib.pyplot as plt
plt.figure(figsize = (16,8))
plt.title('Close Price History', fontsize = 18)
plt.plot(intc['Adj Close'])
plt.plot(amd['Adj Close'])
plt.legend(['INTC', 'AMD'], loc = 'upper left', fontsize = 18)
plt.xlabel('Date', fontsize = 18)
plt.ylabel('Close Price USD ($)', fontsize = 18)
@bigbaer
bigbaer / bratko-kopec.py
Created March 13, 2018 05:55 — forked from niklasf/bratko-kopec.py
An implementation of the Bratko-Kopec Test using python-chess
#!/usr/bin/python
import chess
import chess.uci
import sys
import time
MOVETIME = 120.0
@bigbaer
bigbaer / chess.py
Created January 6, 2018 02:51 — forked from rsheldiii/chess.py
chess program for python
"""CONVENTIONS:
positions are done row-column from the bottom left and are both numbers. This corresponds to the alpha-number system in traditional chess while being computationally useful. they are specified as tuples
"""
import itertools
WHITE = "white"
BLACK = "black"
@bigbaer
bigbaer / BTtest.ino
Created February 19, 2016 07:26 — forked from Robotonics/BTtest.ino
Bluetooth serial test for Arduino Bluetooth shield from Maplin
#include <SoftwareSerial.h>
#define RxD 7
#define TxD 6
SoftwareSerial BlueToothSerial(RxD,TxD);
char flag=1;
void Test_BlueTooth()
{
unsigned char t=0;