Skip to content

Instantly share code, notes, and snippets.

View ad-m's full-sized avatar
🐱
😺

Adam Dobrawy ad-m

🐱
😺
View GitHub Profile
Downloading/unpacking talon
Using download cache from /home/adas/.cache/pip/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Ft%2Ftalon%2Ftalon-1.0.2.tar.gz
Running setup.py (path:/home/adas/.virtualenvs/zabawki/build/talon/setup.py) egg_info for package talon
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*~' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'talon'
warning: no previously-included files matching '*~' found under directory 'talon'
warning: no files found matching 'train.data'
warning: no files found matching 'classifier'
/* Zadanie 5
Program generuje liczby całkowite do macierzy o
wymiarze 10x10, a następnie oblicza i wyświetla
sumę liczb na przekątnych macierzy. */
public class FiveArray extends Matrix{
//int[][] data;
//int w;
//int h;
public FiveArray(int h) {
public class SimplyCheck implements TenArray.Checkable{
public boolean check(int i, int j) {
if(i == 0){ return (j == 1 ? true : false); };
if(j == 0){ return (i == 1 ? true : false); };
while (i != j) {
if (i > j) {
i -= j;
} else {
j -= i;
import java.util.Scanner;
/* 15:54
* Zadanie 5
Napisz program, który pobiera od użytkownika pięd dat
w formie DD.MM.YYYY, następnie segreguje je w kolejności
rosnącej. Jeżeli wpisania przez użytkownika data dotyczy
roku 2013 to program wyrzuca wyjątek.
*/
public class Date {
@ad-m
ad-m / Bus.java
Last active August 29, 2015 14:19
package v3;
public class Bus extends Vehicle {
private int fuelConsumption;
public Bus(int id, int maxSpeed, int fuelConsumption) {
super(id, maxSpeed);
this.fuelConsumption = fuelConsumption;
}
package v1;
import java.util.LinkedList;
import java.util.Scanner;
public abstract class Algorithm {
protected LinkedList<Integer> datas = new LinkedList<Integer>();
public Scanner sc = new Scanner(System.in);
public Algorithm() {
<p>Hello <%= name %> from <%= street %>!<br>
What do you want to do?</p>
<p>Greetings,<br>
XYZ</p>
#!/bin/bash
if [ -z "$1" ]; then
echo -n "Enter db_name: ";
read db_name;
exit;
else
db_name="$1";
fi;
password=$(strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 15 | tr -d '\n');
package lab11;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.JTextField;
class AddAction implements ActionListener {
ArrayList<Double> data;
package lab12;
public class Address {
private String street;
private int apartmentNumber;
private int houseNumber;
public Address(String street, int apartmentNumber, int houseNumber) {
this.street = street;
this.apartmentNumber = apartmentNumber;
this.houseNumber = houseNumber;