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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"/> | |
| <title>Laby 1vs1</title> | |
| <style> | |
| html { | |
| text-aling: center | |
| height: 100%; | |
| margin: 0; |
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
| base64size = (bitsize + 2) / 3 * 4 + 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
| #! /usr/bin/env bash | |
| for FILE1 in "$@" | |
| do | |
| ffmpeg -i ${FILE1} -c:v libx264 -profile:v baseline -level 3.0 \ | |
| -pix_fmt yuv420p "${FILE1%.*}_whatsapp.mp4" | |
| done | |
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 copy | |
| class Puzzle(): | |
| def __init__(self, cells): | |
| self.cells = cells | |
| self.validate() | |
| def validate(self): | |
| if not isinstance(self.cells, list): |
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 python | |
| import random | |
| import math | |
| import sys | |
| def get_index_by_coords(x, y, size): | |
| half = int(math.ceil(size/2.0)) | |
| if x < half: |
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
| import datetime | |
| def get_easter_for_year(year): | |
| a = year % 19 | |
| b, c = divmod(year, 100) | |
| d, e = divmod(b, 4) | |
| g = (8 * b +13)//25 | |
| h = (19 * a + b - d - g + 15)% 30 | |
| j, k = divmod(c, 4) |