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.awt.Graphics2D; | |
import java.awt.RenderingHints; | |
import java.awt.geom.AffineTransform; | |
import java.awt.image.BufferedImage; | |
import java.io.ByteArrayOutputStream; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.nio.file.FileSystems; | |
import java.nio.file.Path; |
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 com.igormaznitsa.misc; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; | |
import java.util.concurrent.ConcurrentHashMap; |
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
#!/bin/bash | |
echo Make rule to enable USB port of Brother DCP-7055 | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
RULE_FOLDER=/etc/udev/rules.d |
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
/** | |
* Generates <a href="https://github.com/raydac/java-binary-block-parser">JBBP DSL script</a> from class @BIN annotated fields. Extra field of @BIN annotation is used as expression for array length if the text starts with 'expr:' | |
* <p>Example code: | |
* <pre>{@code | |
* public static class Chunk { | |
* @Bin(outOrder = 1, type = BinType.INT) | |
* int length; | |
* @Bin(outOrder = 2, type = BinType.INT) | |
* int type; | |
* @Bin(outOrder = 3, type = BinType.BYTE_ARRAY, extra = "expr:length") |
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 com.presidentgame.game.utils; | |
import com.igormaznitsa.jhexed.engine.HexEngine; | |
import java.awt.Graphics2D; | |
import java.awt.Stroke; | |
import java.awt.geom.GeneralPath; | |
import java.awt.geom.Point2D; | |
public enum Arrow {; |
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
#!/bin/bash | |
echo | |
echo The Script provides needed rights for USB port of a scanner | |
echo it was developed for MFC Brother DCP7055 to avoid 'invalid argument' error | |
echo | |
echo Author : Igor Maznitsa \(http://www.igormaznitsa.com\) | |
echo Version: 1.00 | |
echo |
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
/* | |
* Copyright 2015 Igor Maznitsa. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |