Skip to content

Instantly share code, notes, and snippets.

View TopHatCroat's full-sized avatar

Antonio Martinović TopHatCroat

View GitHub Profile
"Ivan";"Horvat";"iviCA_-_-_";"123!Qqwe";"1980-10-12";"m";"097 6161616";"hr";"[email protected]";"0";"antmartin2.jpg";"15;54"
"Miki";"Mikic";"mmMMMAAAA-_";"123!Qqwe";"1999-05-02";"f";"095 44545487";"hr";"[email protected]";"0";"antmartin2.jpg";"15;54"
"Darko";"Darkic";"AcAcAcAc_-";"123!Qqwe";"1988-11-20";"m";"097 7536541";"hr";"[email protected]";"0";"antmartin2.jpg";"156;84"
"Ana";"Ban";"banANA_-_-_";"123!Qqwe";"1991-07-25";"m";"099 95151512";"hr";"[email protected]";"0";"antmartin2.jpg";"123;32"
String adminRegex = "^(-admin)? ?-server (?:(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})|(localhost)) -port ([8|9][0-9]{3}) -u ([a-zA-Z0-9-_]+) -p ([a-zA-Z0-9-_!#]+) -(pause|stop|start|stat)$";
String userRegex = "^(-korisnik)? ?-s (?:(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})|(localhost)) -port ([8|9][0-9]{3}) -u ([a-zA-Z0-9-_]+) ?(-(a|t) (?:(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})|(localhost)))? ?(-w ([0-6][0-9]{2}))?$";
String showRegex = "^(-prikaz)? ?-s ((:?([a-zA-Z]:|(http:(?:\\\\|\\/))))?(?:(?:\\\\|\\/)?(\\w[\\w ]*.*))+\\.(?:(?i)bin(?-i)))$";
├── api
│   ├── CityManager.java
│   ├── EventManager.java
│   ├── FestivalManager.java
│   ├── ImgurService.java
│   ├── responses
│   │   ├── CityResponseComplete.java
│   │   ├── ErrorResponseComplete.java
│   │   ├── ErrorResponse.java
│   │   ├── EventResponseComplete.java
public class TermHelper {
public static final String ESC = "\033[";
public static void clearScreen() {
System.out.print(ESC + "2J");
}
public static void moveTo(int x, int y) {
System.out.print(ESC + y + ";" + x + "H");
}
public class TermHelper {
public static final String ESC = "\033[";
public static void clearScreen() {
System.out.print(ESC + "2J");
}
public static void moveTo(int x, int y) {
System.out.print(ESC + y + ";" + x + "H");
}
public class TermHelper {
public static final String ESC = "\033[";
public static void clearScreen() {
System.out.print(ESC + "2J");
}
public static void moveTo(int x, int y) {
System.out.print(ESC + y + ";" + x + "H");
}
model {
faster_rcnn {
num_classes: 5
image_resizer {
keep_aspect_ratio_resizer {
min_dimension: 50
max_dimension: 500
}
}
feature_extractor {
@TopHatCroat
TopHatCroat / tfrecord.py
Last active March 14, 2018 08:25
tfrecord.py
import os
import io
import re
import random
import tensorflow as tf
from PIL import Image
from object_detection.utils import dataset_util
flags = tf.app.flags
@TopHatCroat
TopHatCroat / error.txt
Created March 14, 2018 08:27
error.txt
WARNING:tensorflow:From /home/antonio/Development/TensorFlow/env/ccfoto/lib/python3.6/site-packages/tensorflow/contrib/slim/python/slim/learning.py:736: Supervisor.__init__ (from tensorflow.python.training.supervisor) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.MonitoredTrainingSession
2018-03-14 00:07:43.873721: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
INFO:tensorflow:Restoring parameters from /home/antonio/Development/TensorFlow/tuts/obj_detect/models/checkpoint/model.ckpt
INFO:tensorflow:Running local_init_op.
INFO:tensorflow:Done running local_init_op.
INFO:tensorflow:Starting Session.
INFO:tensorflow:Saving checkpoint to path /home/antonio/Development/TensorFlow/tuts/obj_detect/models/model/train/model.ckpt
INFO:tensorflow:Starting Queues.
@TopHatCroat
TopHatCroat / output.json
Created April 15, 2018 14:24
Swagger API response
{
"value": "{\"swagger\":\"2.0\",\"info\":{\"description\":\"Spring Boot bootstrap project\",\"version\":\"0.1\",\"title\":\"Do You Even Code\",\"contact\":{\"name\":\"Antonio Martinovi\u0107\",\"url\":\"www.example.com\",\"email\":\"[email protected]\"},\"license\":{\"name\":\"Unlicense\"}},\"host\":\"localhost:8080\",\"basePath\":\"\/\",\"tags\":[{\"name\":\"user-controller\",\"description\":\"User Controller\"}],\"paths\":{\"\/\":{\"get\":{\"tags\":[\"user-controller\"],\"summary\":\"home\",\"operationId\":\"homeUsingGET\",\"consumes\":[\"*\/*\"],\"produces\":[\"text\/html\"],\"responses\":{\"200\":{\"description\":\"OK\"},\"302\":{\"description\":\"Found\",\"schema\":{\"type\":\"string\"}},\"401\":{\"description\":\"Unauthorized\"},\"403\":{\"description\":\"Forbidden\"},\"404\":{\"description\":\"Not Found\"}}},\"head\":{\"tags\":[\"user-controller\"],\"summary\":\"home\",\"operationId\":\"homeUsingHEAD\",\"consumes\":[\"*\/*\"],\"produces\":[\"text\/html\"],\"responses\":{\"204\":{\"description\":\"No