Skip to content

Instantly share code, notes, and snippets.

View dcrystalj's full-sized avatar

Tomaz dcrystalj

View GitHub Profile
@dcrystalj
dcrystalj / advanced_computer_networking_examination
Created January 19, 2015 17:16
eva hladka questions + answers of examinations 2015
//1 describe first layer, functions, what protocols?
PHYSICAL LAYER:
interacts with transmision media (wire, fibre, air)
functions: - transform bits to analog signals,
- bit rate control,
- multiplexing to logical channels
- circuit switching : old telephones, two network nodes establish communication channel which guarantees
the full bandwidth
- bit syncronisation
#include <iostream>
#include <string.h>
#include <algorithm>
#include <stdio.h>
using namespace std;
int main()
{
char a [7];
a = list(input())
b = list(input())
changed = 1
def max(arr):
m = '0'
k = 0
for i,j in enumerate(arr):
if m < j:
m = j
@dcrystalj
dcrystalj / D.bc.cpp
Last active August 29, 2015 14:16
time-limit
#include <stdio.h>
#include <float.h>
using namespace std;
bool isUpper(double t, int[] s, int[] v) {
double m = FLT_MIN;
for (int i = 0; i < n; ++i)
@dcrystalj
dcrystalj / B.fg.cpp
Created March 15, 2015 18:47
codeforces maxsubarray
#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
int n, min_i = 0, max_i = 0, tmp_i = 0, max_sum=0, curr_sum=0;
cin >> n;
int arr[n];
@dcrystalj
dcrystalj / B.cdpwd.cpp
Last active August 29, 2015 14:17
fun errror
#include <stdio.h>
#include <iostream>
#include <string.h>
#include <algorithm>
#define N 10000
using namespace std;
int filter(char* str, char* out, int out_pos){
int len = strlen(str);
@dcrystalj
dcrystalj / problems
Created March 28, 2015 06:35
linux problems
~tom sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-headers-3.16.0-23 linux-headers-3.16.0-23-generic
linux-image-3.16.0-23-generic linux-image-extra-3.16.0-23-generic
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
11 not fully installed or removed.
After this operation, 281 MB disk space will be freed.
def backprop(self, thetas):
theta = self.shape_thetas(thetas)
a1 = add_ones(X)
z2 = a1.dot(theta[0])
a2 = add_ones(g(z2))
z3 = a2.dot(theta[1])
a3 = add_ones(g(z3))
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCskYB8BNd9f1OCWNj0zNPnW3ry/VttHP2Td37pFLVaC99oGHE+mB5GEoyWvOoJaD64r3uoFJmBmAKHzZ/qjndDWUEYzx9lWf7VLhMWpbhyxM6O5SlFgZgoHrzUJ/dznbEY9up735qCQKHZCaS5M3VSjXTq1vmQG+45LdjbZaMpAVIr8sKbpFxm+mfWokAxdBFXTA8PsVVc093REIzSW+K+GkjqQ2X0DuXRm6QZTFUSedz+bannIWrz7Y9gwbrMRyA7OjMyIO9pbk+D/Qp0sk2wpxqRLFYFMU8FkcHr9jVQ8efAQYpgX6WyDlomn6+e2JBA5fBdwi91qeY4MM5vdtYJ tomaz@DESKTOP-5USODBB
@dcrystalj
dcrystalj / gist:5148535
Created March 13, 2013 01:02
PHP: test
We couldn’t find that file to show.