(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.
This file contains hidden or 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
############################################################################ | |
# # | |
# ------- 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: # |
This file contains hidden or 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
<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'; |
This file contains hidden or 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
export var headerObserver = function ( | |
toChange: HTMLElement, | |
toWatch: any | |
): IntersectionObserverCallback { | |
let direction = 'up'; | |
let prevYPosition = 0; | |
const smallheader: any = toChange; | |
const sections: any = toWatch; |
This file contains hidden or 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
{% 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> |
This file contains hidden or 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
//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'), |
This file contains hidden or 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
// 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"); |
This file contains hidden or 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
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 |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#!/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 |
NewerOlder