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
module Prettify | |
( | |
Doc, | |
char, double, text, | |
(<>), hcat, fsep, punctuate, | |
compact, pretty | |
) where | |
data Doc = Empty | |
| Char Char |
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 "mrepro.h" | |
void Getaddrinfo(const char* hostname, const char* servicename, | |
const struct addrinfo* hints, struct addrinfo** result) | |
{ | |
int error; | |
error = getaddrinfo(hostname, servicename, hints, result); | |
if (error) Errx(MP_ADDR_ERR, "getaddrinfo: %s", gai_strerror(error)); | |
} | |
void Getnameinfo(const struct sockaddr* sockaddr, socklen_t addrlen, |
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
oznaceni_podaci = ... | |
neoznaceni_podaci = ... | |
threshold = 0.05 | |
dok ima neoznacenih podataka: | |
train,test = oznaceni_podaci.split() | |
treniraj model ( train, test ) | |
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.io.BufferedReader; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.URL; | |
import java.util.LinkedList; | |
import java.util.List; | |
/** | |
* Created by fhrenic on 12/11/2016. |
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
#! /usr/bin/env bash | |
cd ~/Downloads | |
# must be named like this | |
TAR_FILE='ns-allinone-2.35.tar.gz' | |
# this will be the directory | |
DIR_NAME='ns-allinone-2.35' |
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
/** | |
* Regular expression for finding numbers in double format | |
*/ | |
private static final Pattern NUM = Pattern.compile("[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?"); |
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
# Luka Sonjic 0036476996 | |
# Matej Lipovac 0036468779 | |
# Oblikovanje simulatora | |
set ns [new Simulator] | |
# Otvaranje datoteke za NAM trace | |
set nf [open out.nam w] | |
$ns namtrace-all $nf |
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 hr.fer.tel.hmo.tabu.alg; | |
import java.util.Collection; | |
/** | |
* Interface for tabu search | |
*/ | |
public interface TabuProblem<S> { | |
/** |
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
#! /usr/bin/env bash | |
APPNAME= | |
# tomcat conf | |
TADM_USER=admin | |
TADM_PASS=admin | |
# derby conf | |
DERBY_DB=/home/vagrant/database |
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 parallel; | |
import java.util.Collection; | |
import java.util.Observable; | |
import java.util.Observer; | |
import java.util.concurrent.*; | |
import java.util.concurrent.atomic.AtomicInteger; | |
/** | |
* This class is used to execute tasks in parallel. |
OlderNewer