Skip to content

Instantly share code, notes, and snippets.

View bambuchaAdm's full-sized avatar

Łukasz Dubiel bambuchaAdm

View GitHub Profile
// (..)
int hinty[25];
gimme_hint(tablica,&hinty);
render(size,hinty,kur_x, kur_y);
@bambuchaAdm
bambuchaAdm / 2D_DFT.m
Last active August 29, 2015 14:17
Mathlab functions for CPS
N = 20,
M = 20
s = rand(N,M)
S = zeros(N,M)
S = matrixW(N) * s * matrixW(M)
@bambuchaAdm
bambuchaAdm / example1.m
Last active August 29, 2015 14:17
CPS - 2015-03-24
N = 10;
x = rand(1,N);
X = x * matrixW(N);
M = N-1;
y = x(1:M);
Y = y * matrixW(M);
@bambuchaAdm
bambuchaAdm / dft2d.m
Created March 31, 2015 07:29
CPS 2015-03-31
N=6;
M=4;
s = rand(N,M);
S = mat_dft(N) * s * mat_dft(M);
%backs = inv(mat_dft(N)) * S * inv(mat_dft(M));
backs = 1/N * conj(mat_dft(N)) * S * 1/M * conj(mat_dft(M))
err = max(abs(backs(:) - s(:)))
@bambuchaAdm
bambuchaAdm / brzydal.js
Last active August 29, 2015 14:18
Some JS
(function($){
function formLine(number){
return "<tr class='config-entry'><td headers='name'>" + number + "</td> \
<td headers='group'> \
<input class='text medium-field' type='text' id='group-name' name='" + number + ".groupName' value='{$config.groupName}'> \
</td> \
<td class='count'> \
<input class='text medium-field' type='number' id='group-count' name='" + number + ".reviewersCount' value=''> \
</td> \
fm = 1 % 10, 100
fc = 40e3;
omegaM = 2*pi*fm;
omegaC = 2*pi*fc;
x = @(t) sin(omegaM * t);
y = @(t) sin(omegaC * t + integral(x, 0 , t));
fs = fc*2.1;
t = 0:(1/fs):1;
s = y(t);
rjmp main
numbers:
.DB 70 96 -70 -96 -126 30 126 -6 -2 -5
main:
ldi ZH, HIGH(2*numbers)
ldi ZL, LOW(2*numbers)
loop:
% m-plik skrytpowy: rozwiazanie_zadania_3.m
%
% Laboratorium: Cyfrowe Przetwarzanie Sygnałów;
% Katedra Elektroniki, WIEiT, AGH;
%
% Opracowanie: Przemyslaw Koerohoda,, 12/05/2015;
clc; clear; close all;
fp=11025; fg=1000;
UMAR_W_BUTACH
.LIB L1DO5.LIB
*.MODEL MOS NMOS(LEVEL=2)
.PARAM Ugs 0
M1 2 1 0 0 LEVEL1 W=25u L=2u
V2 2 0 0
V1 1 0 {Ugs}
@bambuchaAdm
bambuchaAdm / rankings.feature
Created May 25, 2015 02:39
Kudosy gherkin description
Feature: Rankings
Ranking allow comunity to know who and how much working for comunity.
Background:
Given: User is logged in
Scenario: Rankings for week is default
When: User click rankings button
Then: There should be table in front
And: Time range should be one week