Skip to content

Instantly share code, notes, and snippets.

View Mati365's full-sized avatar
🚧
Work Work Work

Mateusz Bagiński Mati365

🚧
Work Work Work
View GitHub Profile
#include <iostream>
#include <math.h>
#include <iomanip>
using namespace std;
/** wyznacznik arraya */
float fckd(float jpdl[2][2]) {
return jpdl[0][0] * jpdl[1][1] - jpdl[0][1] * jpdl[1][0];
}
#include <iostream>
using namespace std;
string asdasds(unsigned int pkt) {
switch(pkt) {
case 0: case 1:
return "mierna";
break;
#include <iostream>
using namespace std;
string asdasds(unsigned int pkt) {
if(pkt == 0 || pkt == 1) { return "mierna"; }
else if(pkt == 2 || pkt == 3) { return "niedostateczna"; }
else if(pkt == 4 || pkt == 5) { return "dostateczna"; }
else if(pkt == 6 || pkt == 7) { return "dobra"; }
else if(pkt == 8 || pkt == 9) { return "bardzo dobra"; }
#include <iostream>
using namespace std;
int main() {
while(true) {
cout
<< "Pola powierzchnii figur" << endl
<< "1 - prostokat" << endl
<< "2 - kolo" << endl
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to occur.
*/
/*
Copyright (C) 1991-2011 Altera Corporation
Your use of Altera Corporation's design tools, logic functions
and other software and tools, and its AMPP partner logic
functions, and any output files from any of the foregoing
1) Jan Kowalski dostał oceny z polskiego, angielskiego i fizyki. Jeśli
< 2 - tragedia
<= 2; 3> - jako tako
<= 3, 4 >= środkowa
< 4 super
srednia wazona,
2) Takie jak 1 tylko z user sam sobie dodaje przedmioty
3) tab 10x10, całkowite, 0 -100, licznik, parzyste
4) takie jak pierwsze i min, max współrzędnych wierzchołków
@Mati365
Mati365 / ass.js
Created September 10, 2017 14:59
const R = require('ramda');
const {Either} = require('ramda-fantasy');
const messages = {
unknown: {
opcode: 'Unknown %{0} opcode',
argument: 'Wrong %{0} instruction %{1} argument',
combination: 'Unknown %{0} opcode argument combination',
},
};
public class Foo {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
use IEEE.std_logic_unsigned.all;
entity counter is
generic (width: integer := 23);
port(
clk: in std_logic;
reset: in std_logic := '0';
-- Design plik
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
use IEEE.std_logic_unsigned.all;
-- licznik 4 bitowy
entity counter_4bit is
port(
clk: in std_logic;