This file contains hidden or 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
This computer system is for authorized users only. Individuals using this | |
system without authority or in excess of their authority are subject to | |
having all their activities on this system monitored and recorded or | |
examined by any authorized person, including law enforcement, as system | |
personnel deem appropriate. In the course of monitoring individuals | |
improperly using the system or in the course of system maintenance, the | |
activities of authorized users may also be monitored and recorded. Any | |
material so recorded may be disclosed as appropriate. Anyone using this | |
system consents to these terms. |
This file contains hidden or 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
/** | |
* Find the longest class names in Spring. | |
* Also find FactoryFactory classes. | |
* a goof-off project by @thom_nic | |
*/ | |
import java.util.jar.* | |
defaultTasks 'longest', 'factoryfactory' |
This file contains hidden or 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
server.modules += ( "mod_setenv" ) | |
$HTTP["scheme"] == "https" { | |
setenv.add-response-header = ("Strict-Transport-Security" => "max-age=31536000; includeSubDomains; preload") | |
} |
This file contains hidden or 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
double closest = Double.MAX_VALUE; | |
Player closestp = null; | |
for(Player i : Bukkit.getOnlinePlayers()){ | |
double dist = i.getLocation().distance(event.getPlayer().getLocation()); | |
if (closest == Double.MAX_VALUE || dist < closest){ | |
closest = dist; | |
closestp = i; | |
} | |
} | |
if (closestp == null){ |
This file contains hidden or 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.io.IOException; | |
import java.io.InputStream; | |
import java.nio.file.*; | |
import java.nio.file.attribute.BasicFileAttributes; | |
import static java.nio.file.Files.*; | |
/** | |
* Extracts files and directories of a standard zip file to a destination directory. Requires at least Java 7. | |
*/ |
This file contains hidden or 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
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
This file contains hidden or 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.comphenix.example; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Method; | |
import java.util.List; | |
import net.minecraft.server.v1_5_R3.Entity; | |
import net.minecraft.server.v1_5_R3.EntityHuman; | |
import net.minecraft.server.v1_5_R3.EnumSkyBlock; | |
import net.minecraft.server.v1_5_R3.IWorldAccess; |
This file contains hidden or 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 javafx.application.Application; | |
import javafx.beans.binding.Bindings; | |
import javafx.beans.property.*; | |
import javafx.geometry.Pos; | |
import javafx.scene.Scene; | |
import javafx.scene.control.*; | |
import javafx.scene.input.KeyEvent; | |
import javafx.scene.layout.*; | |
import javafx.stage.*; |
This file contains hidden or 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"?> | |
<ThreeDSecure> | |
<Message id="999"> | |
<VEReq> | |
<version>1.0.2</version> | |
<pan>4444333322221111</pan> | |
<Merchant> | |
<acqBIN>411111</acqBIN> | |
<merID>99000001</merID> | |
<password>99000001</password> |
NewerOlder