Skip to content

Instantly share code, notes, and snippets.

View krystofl's full-sized avatar

Krystof Litomisky krystofl

View GitHub Profile
@krystofl
krystofl / A Python script to summarize text using the T5 model from Google.txt
Last active October 10, 2022 20:20
Python script to summarize text using the T5 model from Google
:)
@krystofl
krystofl / logger_config.json
Last active March 26, 2020 20:52
Python Logging Demo
{
"version": 1,
"loggers": {
"": {
"level" : "DEBUG",
"handlers": ["console_handler"]
}
},
"handlers": {
"console_handler": {

Keybase proof

I hereby claim:

  • I am krystofl on github.
  • I am krystofl (https://keybase.io/krystofl) on keybase.
  • I have a public key ASBqlqdGkqoAyV62eSG8sxa0t5Hk_i4XlzQPrjR5x1kUowo

To claim this, I am signing this object:

@krystofl
krystofl / pytz_tests.py
Last active March 28, 2020 01:34
Some sample code showing how to use the python timezone library - pytz
#!/usr/bin/python3
'''
Tests to learn how to use the pytz timezone library properly
http://pytz.sourceforge.net
'''
import os
import sys
import datetime
@krystofl
krystofl / loop_files.sh
Created August 8, 2018 21:08
Simple shell script to show how to get a list of files and perform some action on all of them
#!/bin/bash
# Simple script to show how to get a list of files in a directory,
# and perform some action on all of them
# get the list of all the files we want to use
files=$(ls -1 *.txt)
# print list of all of them
# echo ${files[@]}
@krystofl
krystofl / Blockstack verification
Created November 15, 2017 06:51
Blockstack verification
Verifying my Blockstack ID is secured with the address 18fT1CwHKAH3whnQWWM9fwpU1tDMaZLfeD https://explorer.blockstack.org/address/18fT1CwHKAH3whnQWWM9fwpU1tDMaZLfeD
@krystofl
krystofl / radar.py
Last active August 29, 2015 14:02 — forked from sergiobuj/Radar-Chart How-to
Make radar charts with matplotlib
'''
# forked from https://gist.github.com/sergiobuj/6721187
## Usage:
import matplotlib.pyplot as plt
from radar import get_radar_graph
labels = ['v1', 'v2', 'v3', 'v4', 'v5', 'v6', 'v7', 'v8', 'v9']
values = [1, 1, 2, 7, 4, 0, 3, 10, 6]
maxval = 10