Skip to content

Instantly share code, notes, and snippets.

View ogola89's full-sized avatar

Tom Ogola ogola89

  • University of Sheffield
  • United Kingdom
  • X @ogola89
View GitHub Profile
@ogola89
ogola89 / Active_Learning.ipynb
Created June 10, 2022 08:46 — forked from akhileshravi/Active_Learning.ipynb
Active Learning in Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ogola89
ogola89 / bwt.py
Created November 19, 2021 15:36 — forked from dmckean/bwt.py
A simple Burrows-Wheeler transform function in python
#! /usr/bin/env python
"""
A simple Burrows-Wheeler transform function in python.
Algorithm presented in:
Burrows M, Wheeler DJ: A Block Sorting Lossless Data Compression Algorithm.
Technical Report 124. Palo Alto, CA: Digital Equipment Corporation; 1994.
USAGE: bwt.py [-h] [-i INDEX] STRING
"""
@ogola89
ogola89 / YouTube-OAuth-Snippets
Created April 12, 2021 00:45 — forked from CoreyMSchafer/YouTube-OAuth-Snippets
YouTube-OAuth-Snippets
# token.pickle stores the user's credentials from previously successful logins
if os.path.exists('token.pickle'):
print('Loading Credentials From File...')
with open('token.pickle', 'rb') as token:
credentials = pickle.load(token)
# Google's Request
from google.auth.transport.requests import Request
@ogola89
ogola89 / scala-cheatsheet.md
Created February 4, 2021 20:02 — forked from heathermiller/scala-cheatsheet.md
Scala Cheatsheet

This cheat sheet originated from the forum, credits to Laurent Poulain. We copied it and changed or added a few things.

Evaluation Rules

  • Call by value: evaluates the function arguments before calling the function
  • Call by name: evaluates the function first, and then evaluates the arguments if need be
    def example = 2      // evaluated when called
    val example = 2      // evaluated immediately
@ogola89
ogola89 / settings.py
Created December 24, 2020 18:31 — forked from AnindyaNaskar/settings.py
Django plotly dash
"""
Django settings for django_dash project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
@ogola89
ogola89 / settings.py
Created December 24, 2020 18:31 — forked from AnindyaNaskar/settings.py
Django plotly dash
"""
Django settings for django_dash project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/