Skip to content

Instantly share code, notes, and snippets.

View FlynnOConnell's full-sized avatar
🎯
Focusing

Flynn FlynnOConnell

🎯
Focusing
View GitHub Profile
@FlynnOConnell
FlynnOConnell / fpl.md
Last active January 8, 2025 20:13
fastplotlib_install

(base) RBO Jan 08 15:07 ~ $ git clone https://github.com/fastplotlib/fastplotlib.git Cloning into 'fastplotlib'... remote: Enumerating objects: 5890, done. remote: Counting objects: 100% (23/23), done. remote: Compressing objects: 100% (23/23), done. remote: Total 5890 (delta 3), reused 0 (delta 0), pack-reused 5867 (from 1) Receiving objects: 100% (5890/5890), 20.82 MiB | 30.20 MiB/s, done. Resolving deltas: 100% (3455/3455), done. Filtering content: 100% (83/83), 33.17 MiB | 10.88 MiB/s, done.

@FlynnOConnell
FlynnOConnell / docker-aliases.sh
Created March 29, 2024 01:10 — forked from jgrodziski/docker-aliases.sh
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #
<template>
<div class="blue-shadow">
<highlightjs :language="gistprops.language" :code="gistcontent" />
</div>
</template>
<script setup>
import highlightjs from '@/components/subcomponents/HighlightCode.vue';
import { onMounted, ref, computed } from 'vue';
import { Octokit } from 'octokit';
export var headerObserver = function (
toChange: HTMLElement,
toWatch: any
): IntersectionObserverCallback {
let direction = 'up';
let prevYPosition = 0;
const smallheader: any = toChange;
const sections: any = toWatch;
{% extends "layout.html" %}
{% block css %}
<link rel="stylesheet" href="../static/css/style.css" />
{% endblock %}
{% block content %}
<div id="belowtopnav" class="home" style="margin-left: 100px; padding-top: 5px;">
<div id="main">
<h1>
//Functions for picking slider color
(function(document){
var display_element = document.getElementById("display-box"),
r = document.querySelector('#r'),
g = document.querySelector('#g'),
b = document.querySelector('#b'),
r_out = document.querySelector('#r_out'),
g_out = document.querySelector('#g_out'),
b_out = document.querySelector('#b_out'),
// In this file a canvas is generated and added to the DOM.
// The mouse is used to draw dots on the canvas with a predefined color and radius.
// One button is used to send the data of the current drawing on the canvas and another one is used to clear the canvas.
$( document ).ready(function() {
function createCanvas() {
var canvas = document.getElementById("inputCanvas");
from __future__ import print_function
from flask import Flask, render_template, make_response
from flask import redirect, request, jsonify, url_for
import json
import io
import os
import base64
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
import numpy as np
@FlynnOConnell
FlynnOConnell / Scores.py
Created December 17, 2022 22:04
Scoring utilities for neural network.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
# scores.py
Module (neuralnetwork): Structures to score and keep scores for evaluated data.
"""
from __future__ import division
import logging
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
# _validate.py
Module (nn_utils):
Validation functions for SVM. Determine which steps have occured,
Prevent steps from occuring before previous attributes have been set
"""
import numpy as np