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 testing; | |
import java.util.Comparator; | |
public class Sorting { | |
public static <T> void quicksort(T[] array, Comparator<? super T> comp) { | |
quicksort(array, comp, 0, array.length - 1); | |
} |
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
echo ' | |
<h2 id="peer-assist-link">Dedicated Peer Assist with EGI Scientists</h2> | |
<div id="peer-assist-overlay" style="display: none;"><div id="peer-assist-close"><img src="/wp-content/uploads/2014/07/button-close-black.png"/></div>[contact-form-7 id="13584" title="Benefits Page Contact (Peer Assist)"]</div>'; |
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
echo ""; |
Paste into new tab:
data:text/html,
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
ytplayer = document.getElementById("movie_player"); | |
ytplayer.getCurrentTime(); |
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 Youtube Stopper | |
// @namespace http://spencerlarry.com/ | |
// @version 0.1 | |
// @description Automatically stops the video before it gets to the end and shows suggested videos. | |
// @author You | |
// @match https://www.youtube.com/watch?v=z_CfRxf3kPI&enablejsapi=1 | |
// @include http*://www.youtube.com/watch?* | |
// @grant none | |
// ==/UserScript== |
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
-moz-transform: scaleX(-1); | |
-o-transform: scaleX(-1); | |
-webkit-transform: scaleX(-1); | |
transform: scaleX(-1); | |
filter: FlipH; | |
-ms-filter: "FlipH"; |
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
Create WordPress Admin Account Using FTP/PHP | |
April 25, 2012 | |
Here is a little snippet which can create a WordPress backend account with ease using the FTP, just paste this PHP snippet in the active theme’s functions.php and the account will be created. Also, make sure the username and the email are unique, or the function will fail. | |
function admin_account(){ | |
$user = 'AccountID'; | |
$pass = 'AccountPassword'; | |
$email = '[email protected]'; | |
if ( !username_exists( $user ) && !email_exists( $email ) ) { | |
$user_id = wp_create_user( $user, $pass, $email ); |