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 javax.imageio.ImageIO; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import java.net.URL; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
public class ImageDownloader extends Timer { | |
public static void main(String[] args) { |
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 ua.samosfator.zno.english.wordsFrequency; | |
import org.apache.pdfbox.cos.COSDocument; | |
import org.apache.pdfbox.pdfparser.PDFParser; | |
import org.apache.pdfbox.pdmodel.PDDocument; | |
import org.apache.pdfbox.util.PDFTextStripper; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.HashMap; |
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 vkapi.Audio; | |
import org.apache.commons.io.IOUtils; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.client.utils.URIBuilder; | |
import org.apache.http.impl.client.HttpClientBuilder; | |
import org.json.simple.JSONArray; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>До оголошення результатів ЗНО залишилося...</title> | |
<link rel="stylesheet" href="style.css"> | |
<meta property="og:image" content="http://osvita.ua/doc/images/news/8/822/UCYAO_c_i.jpg"> | |
<link rel="icon" href="favicon.png"> | |
<meta charset="utf-8"> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/lang/en-gb.js"></script> | |
</head> |
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.company; | |
import javazoom.spi.mpeg.sampled.file.MpegAudioFileReader; | |
import javax.sound.sampled.AudioFileFormat; | |
import javax.sound.sampled.UnsupportedAudioFileException; | |
import java.io.File; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.ArrayList; |
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
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | |
JFrame frame = new JFrame(); | |
frame.setContentPane(MainWindow); | |
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); | |
frame.setMinimumSize(new Dimension(640, 480)); | |
frame.setUndecorated(true); | |
frame.setOpaque(true); | |
frame.setBackground(new Color(0, 0, 0, 0)); | |
frame.setLocationRelativeTo(null); | |
frame.pack(); |
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 static enumeration.EnumerateWindows.Kernel32.*; | |
import static enumeration.EnumerateWindows.Psapi.*; | |
import static enumeration.EnumerateWindows.User32DLL.*; | |
import com.sun.jna.Native; | |
import com.sun.jna.Pointer; | |
import com.sun.jna.platform.win32.WinDef.HWND; | |
import com.sun.jna.ptr.PointerByReference; | |
public class EnumerateWindows { | |
private static final int MAX_TITLE_LENGTH = 1024; |
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 ua.samosfator.gmmtools; | |
import com.vividsolutions.jts.geom.Coordinate; | |
import com.vividsolutions.jts.geom.Geometry; | |
import com.vividsolutions.jts.geom.GeometryFactory; | |
import com.vividsolutions.jts.geom.PrecisionModel; | |
import com.vividsolutions.jts.simplify.DouglasPeuckerSimplifier; | |
import javax.swing.*; | |
import java.awt.*; |
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
private void clickGeometry() throws AWTException { | |
for (Coordinate c : resultGeometry.getCoordinates()) { | |
Robot bot = new Robot(); | |
bot.mouseMove((int) c.x, (int) c.y); | |
bot.mousePress(InputEvent.BUTTON1_MASK); | |
bot.mouseRelease(InputEvent.BUTTON1_MASK); | |
bot.delay(500); | |
} | |
coords.clear(); | |
} |
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
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo) { | |
if (changeInfo.status == "complete") { | |
chrome.tabs.get(tabId, function(tab) { | |
window.setInterval(function() { | |
setPageActionIcon(tab); | |
}, 1000); | |
function setPageActionIcon(tab) { | |
var canvas = document.createElement('canvas'); | |
var img = document.createElement('img'); |
OlderNewer