Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Working from home

Filip Górczyński filipgorczynski

🚀
Working from home
View GitHub Profile
View .pre-commit-config.yaml
repos:
- repo: https://gitlab.com/pycqa/flake8.git/
rev: 3.8.4
hooks:
- id: flake8
name: Flake8 Py3
additional_dependencies: ['flake8-docstrings']
language_version: python3
View .pre-commit-config.yaml
repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
name: Flake8 Py3
additional_dependencies: ['flake8-docstrings']
language_version: python3
View notes.to.zettelkasten.py
#!/usr/bin/env python3
from datetime import datetime
import mmap
import os
from stat import *
from colorama import Fore, Style
WHITE = Fore.WHITE
View extract_css_colors.py
#!/usr/bin/env python3
import math
import re
from PIL import Image, ImageColor, ImageDraw
COLORS_RE = r'(?:#|0x)(?:[a-f0-9]{3}|[a-f0-9]{6})\b|(?:rgb|hsl)a?\([^\)]*\)'
def create_color_palette(project_name, colors_set):
View GitHub.MarkDeletedFiles.js
(function selectUnimportant() {
let files = document.querySelectorAll('.file');
for (let index = 0; index < files.length; ++index) {
let content = files[index].innerHTML;
if (content.indexOf('This file was deleted') !== -1 || content.indexOf('No changes.') !== -1) {
let checkbox = files[index].querySelector('.js-reviewed-checkbox');
if (!checkbox.checked) {
setTimeout(function() {checkbox.click(); }, 666);
}
}
@filipgorczynski
filipgorczynski / olx.homepage.robot
Created Nov 18, 2019
Simple example showing Robot Framework capabilities
View olx.homepage.robot
*** Settings ***
Library SeleniumLibrary
Test Teardown Close Browser
*** Variables ***
${home_url}= https://olx.pl/
*** Keywords ***
User Opens Browser
Open Browser about:blank firefox
@filipgorczynski
filipgorczynski / oserror.gdal.sh
Last active Nov 13, 2019
Python OSError and GDal library
View oserror.gdal.sh
dnf list installed | grep -i gdal
# ...
gdal30-libs.x86_64 3.0.1-4.f29 @pgdg11
# ....
dnf history
# ...
Ident. | Wiersz poleceń | Data i czas | Działania | Zmien.
-------------------------------------------------------------------------------
297 | update | 2019-11-07 07:49 | Upgrade | 7 EE
296 | update | 2019-11-06 06:51 | I, U | 8 EE
View .travis.yml
dist: xenial
notifications:
email: false
sudo: required
language: python
python:
- "3.7"
cache:
pip: true
addons:
View .travis.yml
before_install:
# ...
-sudo service xvfb stop
-sudo sed -i 's/1024x768/1280x1024/g' /etc/systemd/system/xvfb.service
-sudo service xvfb start
# ...
@filipgorczynski
filipgorczynski / .gitconfig
Created May 1, 2019
.gitconfig example aliases
View .gitconfig
[alias]
st = status
ci = commit
br = branch -v
co = checkout
df = diff
lg = log -p
up = pull
who = shortlog -s --
diff = diff --no-prefix