Skip to content

Instantly share code, notes, and snippets.

View efiku's full-sized avatar
💬
🗡

Krzysztof Pazdur efiku

💬
🗡
  • Poland
View GitHub Profile
@efiku
efiku / macierze.c
Last active September 12, 2016 16:54
#include <stdio.h>
#include <stdbool.h>
void printMatrix(int n, int m, double matrix[10][10]);
void inputMatrix(int n, int m, double matrix[10][10]);
void createVector_X(int m, double *vector, double matrix[10][10]);
void createVector_Y(int n, int m, double *vector, double matrix[10][10]);
void arithmeticAverage(double *vector, double *avgPositiveElements, bool *havePositiveElement, int size);
int main() {
#include <stdio.h>
void SA(double *w1, int n, double *SAed, int *rozw);
int main() {
double x[20], y[20], SAed_x, SAed_y;
int n,m, liczby_dodatnie_x, liczby_dodatnie_y;
//
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#pragma warning(disable: 4996)
#define MAX_TEXT_SIZE 1024
void checkInputValue(char *array);
double convertText(char *array);
@efiku
efiku / .bashrc
Created May 24, 2016 06:29
My Prompt
# Add git branch if its present to PS1
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\[\033[38;5;82m\]\u\[$(tput sgr0)\]\[\033[38;5;11m\]@\[$(tput sgr0)\]\[\033[38;5;75m\]\h\[$(tput sgr0)\]\[\033[38;5;6m\][\[$(tput sgr0)\]\[\033[38;5;156m\]\w\[$(tput sgr0)\]\[\033[38;5;6m\]]\[$(tput bold)\]\[\033[38;5;196m\]\$(parse_git_branch)\[\033[38;5;15m\]\$:\[$(tput sgr0)\]"
@efiku
efiku / Makefile
Last active September 12, 2016 16:54
all: main
# Ołki dołki
%: %.cpp
g++ -std=c++0x $< -o $@
%: %.c
gcc $< -o $@
//
// Created by efik on 07.05.16.
//
#ifndef ASD_ALOGRYTMY_H
#define ASD_ALOGRYTMY_H
typedef int ALG_TYPE_SIZE;
void swap(ALG_TYPE_SIZE &first, ALG_TYPE_SIZE &second);
void bubbleSort(ALG_TYPE_SIZE array[], ALG_TYPE_SIZE size);
void insertionSort(ALG_TYPE_SIZE array[], ALG_TYPE_SIZE size);
@efiku
efiku / ocena2.c
Created May 8, 2016 11:19
JiPP z 70 letnia programistka.
#include <stdio.h>
#include <math.h>
double ff(double x) {
return (log(x * x) + 5 * pow(2.3, 2)) / ((x + 2.3) * 2) + pow(x * x + pow(2.3, 2), 3);
}
int main() {
double xp, xk, dx;
<?php
namespace yourapp;
// User ValueObject
class User{
private $id;
private $username;
private $userPassword;
private $about;
@efiku
efiku / exampleReplacements.js
Last active September 12, 2016 16:55
Example JSON data with replacements received from /api/modules/replacements
{
"title": "Zastepstwa",
"content": [
{
"class": "4T1",
"lessonNumber": 1,
"date": "2016-03-22",
"classroom": null,
"information": "Uczniowie przychodzą później"
},
@efiku
efiku / exampleSlides.js
Last active September 12, 2016 16:55
Przykładowe zwracane poprzez api sliderów.
[
{
"title": "title",
"content": 1,
"footer": "fotter",
"created": "2016-04-07T10:38:34+02:00",
"sticked": false,
"viewTime": 5
},
{