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
#define F_CPU 1843200 | |
#include "avr/interrupt.h" | |
#include "avr/wdt.h" | |
#include "pins.h" | |
#include "uart.h" | |
#define SIGNAL_LENGTH 4 | |
#define ALARM_LENGTH 0x04EC | |
#define VB_ARMED 0x7F |
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
interpreter: | |
cmp dx, bp | |
jz cmdli | |
mov al, [ds:bp] | |
cmp al, '>' | |
jz incDP | |
cmp al, '<' | |
jz decDP | |
cmp al, '+' |
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
program BarnsleyFullHD; | |
{$mode objfpc}{$H+} | |
uses | |
Classes; { for TThread } | |
type | |
TXY = object | |
X, Y: double; | |
procedure transform(); |
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 __future__ import division | |
from random import random | |
from Swiat import Swiat | |
import pygame | |
import math | |
def grawitacja(x,y,swiat): | |
if x.masa > 499999: | |
print 'Transport sighted: '+str(x.x)+ ' '+str(x.y) |
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
<?php | |
/** | |
* Essentially dumps data from given table, giving no clue as that the schema is | |
* Useful in conjunction with cron/wget database backups(my clients do that) | |
* Forces UTF-8 everywhere. | |
* | |
* @author Henrietta <piotr.maslanka@henrietta.com.pl> | |
* @license public domain | |
*/ | |
/** |
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 __future__ import division | |
from satella.channels.sockets import Socket, ServerSocket, SelectHandlingLayer | |
import time, random | |
PACKS_AT_ONCE = (3, 4, 5, 6) | |
class Operator(SelectHandlingLayer): | |
def on_iteration(self): | |
for channel in self.channels: |
OlderNewer