Skip to content

Instantly share code, notes, and snippets.

View TopHatCroat's full-sized avatar

Antonio Martinović TopHatCroat

View GitHub Profile
@TopHatCroat
TopHatCroat / sh
Created March 22, 2021 08:43
Reev setup
#!/bin/sh
echo "Welcome to reev application installer :)"
read -p "Are you developer (yes, no): " ANSWER
# Install HomeBrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Install Unarchiver
#!/bin/sh
echo "Welcome to reev application installer :)"
read -p "Are you developer (yes, no): " ANSWER
# Install HomeBrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Install Slack
@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\":\"antmartin2@foi.hr\"},\"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
@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 / 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
model {
faster_rcnn {
num_classes: 5
image_resizer {
keep_aspect_ratio_resizer {
min_dimension: 50
max_dimension: 500
}
}
feature_extractor {
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");
}
├── api
│   ├── CityManager.java
│   ├── EventManager.java
│   ├── FestivalManager.java
│   ├── ImgurService.java
│   ├── responses
│   │   ├── CityResponseComplete.java
│   │   ├── ErrorResponseComplete.java
│   │   ├── ErrorResponse.java
│   │   ├── EventResponseComplete.java