Skip to content

Instantly share code, notes, and snippets.

View racinmat's full-sized avatar
🎨
Playing with Stable Diffusion in spare time.

Matěj Račinský racinmat

🎨
Playing with Stable Diffusion in spare time.
View GitHub Profile
@racinmat
racinmat / pom.xml part
Created March 27, 2018 11:06
build java 8
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
@racinmat
racinmat / CSVfileReader.java
Created April 3, 2018 11:06
csv reader java
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class CSVfileReader {
@racinmat
racinmat / odkazy-animefest-2019.md
Last active May 19, 2019 10:11
Odkazy z přenášky z AnimeFestu 2019

Videa:

Články:

@racinmat
racinmat / odkazy-advik-2019-ai.md
Last active August 4, 2019 18:29
Odkazy z přenášku z Advíku 2019, Jak umělá inteligence hraje (nejen) videohry
@racinmat
racinmat / fit_generator.py
Last active October 29, 2019 09:19
Example of multiple instance learning problem with fit_generator
import pandas as pd
import tensorflow as tf
import numpy as np
from sklearn.preprocessing import MultiLabelBinarizer
def highest_idx_leq(arr_cumsum, thr):
""" Returns index of highest value less than or equal to thr """
return np.searchsorted(arr_cumsum, thr, side='right') - 1
@racinmat
racinmat / segmented_max_error.py
Last active October 17, 2019 09:52
Unsorted segmented max with eager execution is not working.
import pandas as pd
import tensorflow as tf
import numpy as np
from sklearn.preprocessing import MultiLabelBinarizer
class SegmentedMean(tf.keras.layers.Layer):
def __init__(self, *args, **kwargs):
super(SegmentedMean, self).__init__(*args, **kwargs)
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@racinmat
racinmat / .gitlab-ci.yaml
Last active November 3, 2020 15:04
Simple setup of nginx+node.js+php app
stages:
- build
build_php:
<<: *build_definition
script:
- "docker build --pull -f php_app_Dockerfile -t <php image> --no-cache ."
- "docker push <php image>"
build_nginx: