Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am hajto on github.
* I am swhajto (https://keybase.io/swhajto) on keybase.
* I have a public key ASDXjR77-k6UKP9TOO5I00v5VyxU_rxOvwWD-fKV3bhixgo
To claim this, I am signing this object:
@Hajto
Hajto / 10-00.md
Last active September 9, 2018 13:32
  1. FST Detektor i Decoder:
  • Dekoder - zamienia sygnały itd na wydarzenia
  • Detektor - zwraca najważniejsze wyderzenia.

Tablica FSM ma M wierszy. Każdy wierszy przechowuje informacje jak "zhandlować" dane wyderzenie w zależności od stanu. Musimy stworzyć dodatkowy wektor/tablice zaistniałych wydarzeń.

Boolean events[M]

Wymagania:

  • programy:
    • Prostu interfejs
  • Najlepiej jakby się dało uruchomić jednym kliknięciem
//
// Created by Haito on 19.01.2018.
//
#include <ncurses.h>
#include <unistd.h>
#include "minesweaper.h"
void initCurses() {
initscr();
PROD?=5
CON?=3
help:
@echo "To set number of producers user PROD env and user CON for consumer count"
run-test-unnamed:
echo $(PROD)
echo "Dopuszczalna różnica jednego znaku na plik źródłowy (\n na zakończenie), liczba plików źródłowych:"
ls cmake-build-debug/producer_src | wc -l
import React from 'react'
import { Segment, Header, Comment } from 'semantic-ui-react';
import _ from 'lodash/fp'
const ownerDetails = (owner) => (owner.details.name + " " + owner.details.surname)
const capitalize = (role) => role.substr(0, 1).toUpperCase() + role.substr(1)
const commentsView = (comments) => (
<Comment.Group>
defmodule USPDistributorWeb.OrderController do
use USPDistributorWeb, :controller
alias USPDistributor.Orders
alias USPDistributor.Orders.Order
action_fallback USPDistributorWeb.FallbackController
plug Guardian.Permissions.Bitwise, [ensure: %{admin: [:list_orders]}] when action in [:index]
plug Guardian.Permissions.Bitwise, [ensure: %{order: [:create]}] when action in [:create]
import React, { Component } from 'react';
import _ from 'lodash'
import { connect } from 'react-redux';
import { getUsers, deleteUser, updateRole } from './actions'
import { Table, Icon, Header } from 'semantic-ui-react'
import RoleDropDown from './sub_components/RoleDropDown'
class AdminUsersList extends Component {
componentDidMount(){
import React, { Component } from 'react';
import _ from 'lodash'
import { connect } from 'react-redux';
import { getUsers, deleteUser, updateRole } from './actions'
import { Table, Icon, Header } from 'semantic-ui-react'
import RoleDropDown from './sub_components/RoleDropDown'
class AdminUsersList extends Component {
componentDidMount(){
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
int main() {
int pm = getpid();
char polecenie_1[20];
int i;
int id, e, w;