This file contains 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
; - kompilowac asemblerem NASM. skompiluje sie jako plik .com | |
[org 0x100] | |
start: | |
; zainicjuj rejestry segmentowe | |
push cs | |
pop ds | |
.mnozenie: | |
mov ax, 0x100 |
This file contains 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
let rec tylkoMaleLitery (x: string) = | |
match x.Length with | |
| 0 -> false | |
| 1 -> System.Char.IsLower(x.[0]) | |
| _ -> System.Char.IsLower(x.[0]) && (tylkoMaleLitery x.[1..]);; | |
let rec suma = function | |
| (m, 1) -> m | |
| (m, n) -> m + (suma (m+1, n-1));; |
This file contains 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> | |
<head> | |
<title>Paula Internet Chat</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<div id="preinit"> | |
Nick: <input type="text" value="Brilliant Paula"><br> | |
<button>Zatwierdź</button> |
This file contains 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
# coding=UTF-8 | |
from math import factorial | |
from collections import defaultdict | |
__author__ = u'Piotr Maślanka, EF-DU/AA, 127172' | |
class Graph(object): | |
"""Immutable graph object""" | |
def __init__(self, links=set()): |
This file contains 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
If you suddently find your SyncMaster 2343 fucking at low resolution, DON'T WORRY. | |
Your EDID card is toast. It's the card that tells the computer what resolutions are supported. | |
Again, don't worry. This shit supports only VGA, and that sucks, but you can still win. | |
First, make sure you have a graphics control panel sophisticated enough to manually define resolutions. | |
When you do, whip it up. You are going to manually configure it. | |
Native resolution is 2048x1152, 60 Hz. |
This file contains 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 sai.devices import Sensor, Pathpoint, get_all_devices, slTREND | |
from sai.orders import acADVISE, Section | |
from sai.basic import ur | |
def find_applicable_devices(): | |
""" | |
Finds devices that are applicable to be taken under QoR. | |
:return: list of Device objects | |
""" |
This file contains 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/python | |
import os | |
import os.path | |
SEARCH_DIRECTORY = '/var/vmail' | |
SPAM_FOLDER_NAME = '.Spam' | |
def analyze(path): | |
entries = os.listdir(path) |
This file contains 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 sai.devices import Sensor, Pathpoint, get_all_devices, slTREND | |
from sai.orders import acADVISE, Section | |
from sai.basic import ur | |
def find_applicable_devices(): | |
""" | |
Finds devices that are applicable to be taken under QoR. | |
:return: list of Device objects | |
""" |
This file contains 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
DOCKER_HOST=172.17.0.1 docker exec -it cassandra nodetool compactionstats | tail -n +3 | head -1 | awk '{ print $5/$6"% done"; }' |
This file contains 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
''' | |
Written by a Public Domain Fan. Means it's public domain :) | |
Piotr Maślanka <piotr.maslanka@henrietta.com.pl> | |
Targets: Python 2.7 | |
''' | |
class MismatchedParenthesesException(Exception): |