This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
import java.util.Scanner; | |
//klasa przechowująca i sortująca wydzielone potablice pięcio-elementowe | |
class Sort_Median { | |
public int[] array; //tablica elementów | |
private int nElems; | |
private int size; //liczba elementów tablicy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.util.Scanner; | |
import java.io.*; | |
class PakowaniePlecaka { | |
public int[] tab; | |
public int dlugosc; | |
public int poj; | |
public PakowaniePlecaka(int ilosc,int pojemnosc) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <sys/resource.h> | |
#include <cstring> | |
#include <gsl/gsl_linalg.h> | |
#include <gsl/gsl_blas.h> | |
#include <cmath> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular.module('app.services') | |
.provider('Ping', Ping); | |
/** | |
* Ping indicated endpoint on specified time interval | |
* @constructor | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular.module('app.frontend.directives') | |
.directive('simplePagination', SimplePagination); | |
SimplePagination.$inject = ['$location']; | |
/** | |
* Directive renders pagination | |
* @require https://github.com/a8m/angular-filter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular.module('app.common.services') | |
.factory('EventDispatcher', EventDispatcherFactory); | |
EventDispatcherFactory.$inject = []; | |
/** | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyevolve import G1DList, GSimpleGA | |
from pyevolve import Initializators, Mutators, Consts | |
from pyevolve import DBAdapters | |
import math | |
# Implementacja funkcji Rastrigina | |
def rastrigin(xlist): | |
n = len(xlist) | |
total = 0 | |
for i in range(n): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#python3 | |
import fileinput | |
import sys | |
import urllib.request | |
import re | |
import os | |
class Dict: | |
## | |
# Konstruktor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#python3 | |
import fileinput | |
import sys | |
import urllib.request | |
import re | |
from xml.dom.minidom import parse, parseString | |
from urllib.parse import unquote | |
from urllib.parse import urlencode | |
class WikiBot: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package binsearchtree; | |
import java.util.Scanner; | |
class Node { | |
public int info; | |
public Node left; | |
public Node right; | |
public Node() { |