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
[alias] | |
st = status | |
ci = commit | |
br = branch -v | |
co = checkout | |
df = diff | |
lg = log -p | |
up = pull | |
who = shortlog -s -- | |
diff = diff --no-prefix |
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 | |
# 1 minute == 6 degrees | |
def getAngle(hours, minutes): | |
minutesAngle = minutes * 6 | |
hoursAngle = 30 * hours + minutes // 12 * 6 | |
return abs(hoursAngle - minutesAngle) | |
assert getAngle(0, 0) == 0 # degrees |
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 collections import Counter | |
data = ['a', 'b', 'c', 'c', 'a', 'd', 'e', 'd'] | |
print( | |
list(item[0] for item in Counter(data).most_common() if item[1] > 1) | |
) |
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
on: push | |
name: 🚀 Deploy blog posts on push | |
jobs: | |
web-deploy: | |
name: 🎉 Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🦄 Code checkout | |
uses: actions/[email protected] |
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
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 |
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
repos: | |
- repo: https://gitlab.com/pycqa/flake8 | |
rev: 3.8.4 | |
hooks: | |
- id: flake8 | |
name: Flake8 Py3 | |
additional_dependencies: ['flake8-docstrings'] | |
language_version: python3 |
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 | |
from datetime import datetime | |
import mmap | |
import os | |
from stat import * | |
from colorama import Fore, Style | |
WHITE = Fore.WHITE |
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 | |
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): |
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
(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); | |
} | |
} |
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
*** Settings *** | |
Library SeleniumLibrary | |
Test Teardown Close Browser | |
*** Variables *** | |
${home_url}= https://olx.pl/ | |
*** Keywords *** | |
User Opens Browser | |
Open Browser about:blank firefox |
NewerOlder