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
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/
Boot Info Script 71f6c5c + Boot-Repair extra info [Boot-Info 16mar2020]
============================= Boot Info Summary: ===============================
=> Windows 7/8/2012 is installed in the MBR of /dev/sda.
=> Windows 7/8/2012 is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
@ogola89
ogola89 / dmesg_output.txt
Created March 10, 2020 12:08
Ubuntu slow boot system files
[ 0.000000] microcode: microcode updated early to revision 0xd6, date = 2019-10-03
[ 0.000000] Linux version 5.3.0-40-generic (buildd@lcy01-amd64-026) (gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2)) #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020 (Ubuntu 5.3.0-40.32-generic 5.3.18)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.3.0-40-generic root=UUID=97d1e2dc-db0b-484f-9a14-0211b112b05b ro quiet splash vt.handoff=7
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'