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
| javascript:function unlockAd () { | |
| var el = document.getElementsByClassName('ayl_response_input')[0]; | |
| el.removeAttribute('disabled'); | |
| el.removeAttribute('value'); | |
| el.focus(); | |
| } | |
| unlockAd(); |
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
| javascript:function checkField (field, rangeStart, rangeEnd) { | |
| for (i = rangeStart-1; i < field.length && i <= rangeEnd-1; i++) | |
| field[i].checked = true; | |
| } | |
| episodeCheckBox = document.getElementsByName('episode_selected[]'); | |
| checkField(episodeCheckBox, prompt("Enter the first episode to check", "1"), prompt("Enter the last episode to check", episodeCheckBox.length)); |
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 xml; | |
| import java.io.BufferedWriter; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.nio.charset.StandardCharsets; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.text.SimpleDateFormat; |
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 sleep_prevent; | |
| import java.awt.AWTException; | |
| import java.awt.GraphicsDevice; | |
| import java.awt.GraphicsEnvironment; | |
| import java.awt.Rectangle; | |
| import java.awt.Robot; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; |
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" standalone="no"?> | |
| <profiles version="2"> | |
| <profile kind="CleanUpProfile" name="Perso" version="2"> | |
| <setting id="cleanup.format_source_code" value="true"/> | |
| <setting id="cleanup.add_missing_annotations" value="true"/> | |
| <setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="true"/> | |
| <setting id="cleanup.remove_unused_private_types" value="true"/> | |
| <setting id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class" value="true"/> | |
| <setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="false"/> | |
| <setting id="cleanup.add_generated_serial_version_id" value="false"/> |
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.sun.test; | |
| import java.awt.Color; | |
| import java.util.Map; | |
| import java.util.Map.Entry; | |
| import java.util.Set; | |
| import java.util.TreeMap; | |
| import java.util.logging.Logger; | |
| import javax.swing.UIManager; |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <style> | |
| body { | |
| background: white; | |
| text-align: center; | |
| padding: 20px; | |
| font-family: Georgia, serif; |
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: "^(\s+)(.*;)\s+\/\*\*?(.*)$" | |
| Replace with: "\1/**\3\n\1\2" |
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
| public class MathUtils { | |
| /** | |
| * Return the maximum number in a collection.<br /> | |
| * @param collection | |
| * the collection. | |
| * @return the maximum value in the collection or <code>null</code> if the collection is empty. | |
| */ | |
| public static <T extends Number> T max (Iterable<T> collection) { | |
| T max = null; | |
| for (T item : collection) { |
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
| #!/bin/bash | |
| # Aliases definition file | |
| # ----------------------- | |
| # Enable color support of ls, grep, ip, etc. | |
| aliases_color () { | |
| if [[ -x /usr/bin/dircolors ]] ; then | |
| local dircolors_file="" | |
| if [[ -r ~/.dircolors ]] ; then |
OlderNewer