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.util.*; | |
import java.util.concurrent.*; | |
import java.util.stream.*; | |
public class TrueStory { | |
private static final int SLEEP = 1; | |
private final int count = 10; | |
private final ExecutorService service = Executors.newFixedThreadPool(count); |
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 joptsimple.ValueConverter; | |
import java.util.HashMap; | |
import java.util.Map; | |
import static org.springframework.core.GenericTypeResolver.resolveTypeArgument; | |
public class Pokus { | |
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
// ==UserScript== | |
// @name iHned Paywall Remover | |
// @namespace http://ihned.cz | |
// @description Removes iHned paywall cookie | |
// @include http:/ihned.cz/* | |
// @include http://*.ihned.cz/* | |
// @version 2 | |
// @grant none | |
// ==/UserScript== | |
document.cookie = "pw=; path=/; domain=.ihned.cz; expires=Thu, 01-Jan-1970 00:00:01 GMT;"; |
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
<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="unqualified"> | |
<xs:simpleType xmlns:xalan="http://xml.apache.org/xslt" name="dateInMultiFormat"> | |
<xs:restriction base="xs:string"> | |
<xs:pattern value="(([1-9])|((0[1-9])|([12][0-9]))|(3[0-1]))\.((0?[1-9])|(1[0-2]))\.((19[0-9]{2})|(2[0-9]{3}))"/> | |
</xs:restriction> | |
</xs:simpleType> | |
<xs:element xmlns:xalan="http://xml.apache.org/xslt" name="Pisemnost"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="DPHKH1"> |
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
file {'/etc/apache2/sites-enabled': | |
ensure => directory, | |
purge => true, | |
recurse => true, | |
force => true, | |
} |
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 org.junit.Before; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.rules.TemporaryFolder; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.util.zip.ZipEntry; | |
import java.util.zip.ZipOutputStream; |
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
public class Depend { | |
public Depend() { | |
System.out.println("Hello World!"); | |
} | |
} |
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
<html> | |
<body> | |
<form action="upload.php" method="post" enctype="multipart/form-data"> | |
<label>Filename: <input type="file" name="file"></label> | |
<input type="submit" value="Submit"> | |
</form> | |
<?php | |
if ($_FILES["file"]["error"] > 0) { | |
echo "Error: " . $_FILES["file"]["error"] . "<br>"; |
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
assertEquals(new SOQLQuery("SELECT (SELECT FirstName FROM Contacts where FirstName='Eva' limit 1),Name FROM Account", | |
"Account", new SelectField("Contact@FirstName"), new SelectField("Name")), | |
processor.process("select (select FirstName from Contacts where FirstName='Eva' limit 1),Name from Account", loginResult)); |
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
class Gtype { | |
def list; | |
void write() { | |
list.each { | |
write(it) | |
} | |
} | |
NewerOlder