Skip to content

Instantly share code, notes, and snippets.

Przemek Dragańczuk draganczukp

Block or report user

Report or block draganczukp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View kolos.md
  1. B
  2. A
  3. C
  4. A
  5. (Nie widać za dobrze, ale zakładam że kursor jest na literce "z", czwarta linijka od dołu) <Escape>d4d4kP
if [ $# -lt 2 ]; then
	echo "Za mało parametrow"
View Main.java
import java.util.Random;
import java.util.concurrent.ArrayBlockingQueue;
import static java.lang.Thread.sleep;
public class Main {
static class W1 extends Thread{
private final ArrayBlockingQueue<Integer> kolejka;
Random random;
View kolos.sql
# vim:set noet sts=0 sw=4 ts=4 tw=500 ft=mysql:
USE kolos;
#############
# Zadanie 1 #
#############
CREATE TABLE Czasopisma (
Czasopismo_ID Integer NOT NULL PRIMARY KEY AUTO_INCREMENT,
View Main.java
import java.util.Scanner;
import java.util.concurrent.Semaphore;
public class Main {
static class W1 extends Thread{
public static int a;
private Semaphore s;
private Semaphore s0;
View Perceptron.java
import java.text.DecimalFormat;
import java.util.Random;
public class Perceptron {
public static void main (String[] args) {
double[][] inputs = {
{1, 1},
{1, 0},
{0, 1},
{0, 0}
View index.ts
const tf = require("@tensorflow/tfjs");
require('@tensorflow/tfjs-node');
const model = tf.sequential();
const inputs = [
[0,0],
[0,1],
[1,0],
View Graphs.java
import java.util.*;
import java.util.function.BiFunction;
public class Graphs {
static class Node{
public double g = 0;
public double f = 0;
public double h = 0;
View dfs.java
import java.util.*;
public class dfs {
static class Node{
int id;
static int lastid = 0;
{
this.id = lastid++;
}
View send-to-kdeconnect
#/bin/bash
# Get the first device listed by kdeconnect-cli
DEVICE=$(kdeconnect-cli --id-only -a | sed '1q')
# Which qdbus service
SERVICE="org.kde.kdeconnect"
# Path depends on device
QPATH="/modules/kdeconnect/devices/$DEVICE/share"
View KSP.log
[LOG 18:15:54.756] ******* Log Initiated for Kerbal Space Program - 1.6.0.2395 (LinuxPlayer) en-us *******
Kerbal Space Program - 1.6.0.2395 (LinuxPlayer) en-us
OS: Linux 4.20 unknown 64bit
CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz (4)
RAM: 7855
GPU: Mesa DRI Intel(R) Haswell Mobile (512MB)
SM: 50 (OpenGL 4.5 (Core Profile) Mesa 18.3.1)
RT Formats: ARGB32, Depth, ARGBHalf, Shadowmap, RGB565, ARGB4444, ARGB1555, Default, ARGB2101010, DefaultHDR, ARGB64, ARGBFloat, RGFloat, RGHalf, RFloat, RHalf, R8, ARGBInt, RGInt, RInt, RGB111110Float, RG32, RGBAUShort, RG16
You can’t perform that action at this time.