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
/* | |
forked from Mr. Pengi's, and added fallback to cookies if localStorage is not available, | |
also fixed a few exceptions that would rise if localStorage is not available | |
*/ | |
var ignores = null; | |
var replacementtext = "<td align='left' bgcolor='444444'>This post has been ignored</td>"; | |
$(document).ready(function () { | |
getIgnores(); | |
hideIgnores(); |
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
function beep() | |
{ | |
var audoElement=document.createElement("audio"); | |
document.body.appendChild(audoElement); | |
audoElement.addEventListener('canplaythrough',function(e){e.target.play();}); | |
audoElement.addEventListener('ended',function(e){e.target.parentNode.removeChild(e.target);}); | |
audoElement.src="http://www.soundjay.com/button/beep-7.mp3"; | |
} |
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
//CSS escape code ripped from Zend Framework ( https://github.com/zendframework/zf2/blob/master/library/Zend/Escaper/Escaper.php ) | |
function css_escape_string($string) | |
{ | |
$cssMatcher=function($matches) | |
{ | |
$chr = $matches[0]; | |
if (strlen($chr) == 1) { | |
$ord = ord($chr); | |
} else { | |
$chr = mb_convert_encoding($chr,'UTF-16BE','UTF-8');//$this->convertEncoding($chr, 'UTF-16BE', 'UTF-8'); |
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
console.log(convertCurrency("100000", "SEK", "USD")); | |
function convertCurrency(currencyAmount, currencyFrom, currencyTo) { | |
var xhr = new XMLHttpRequest(); | |
var url = "https://devtools-paypal.com/apiexplorer/processReq"; | |
//url="https://svcs.sandbox.paypal.com/AdaptivePayments/ConvertCurrency"; | |
var bigO = {}; | |
bigO.httpMethod = "POST"; | |
bigO.oauth = ""; | |
bigO.methodUri = ""; |
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
<?php | |
var_dump(convertCurrency("100000",'USD','GBP')); | |
function convertCurrency($currencyAmount, $currencyFrom, $currencyTo) { | |
// https://developer.paypal.com/docs/classic/api/adaptive-payments/ConvertCurrency_API_Operation/ | |
$bigO = array(); | |
$bigO['userName'] = 'jb-us-seller_api1.paypal.com'; //this is a official paypal test account.. | |
$bigO['password'] = 'WX4WTU3S8MY44S7F'; | |
$bigO['signature'] = 'AFcWxV21C7fd0v3bYYYRCpSSRl31A7yDhhsPUU2XhtMoZXsWHFxu-RWy'; |
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
template<typename X> | |
std::string to_string(X s) | |
{ | |
std::stringstream ret; | |
ret << s; | |
return ret.str(); | |
} |
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
Keep in mind that talking to a woman for the first time is not a job interview, however similar the two might seem. Excerpt your resume sparingly. | |
Want more Men's Health? Subscribe today and get a Risk-Free Trial Issue | |
« PREV | |
NEXT » | |
PRINTEREMAILFACEBOOKTWITTERDIGGSTUMBLE UPONREAD ON 1 PAGE | |
356 COMMENTS ON THIS LIST | |
6 COMMENTS ON THIS PAGE | |
0) { $error_message.=$COM_LANG['not_allowed'] . " | |
"; } if ($_REQUEST['disc_name'] == '') { $error_message.=$_REQUEST['r_disc_name'] . " | |
"; } if ($_REQUEST['disc_body'] == '') { $error_message.=$_REQUEST['r_disc_body'] . " |
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
rsync --recursive --perms --executability --acls --xattrs --archive --owner --group --times --sparse --compress --compress-level=2 --stats --human-readable --progress | |
or maybe | |
rsync --log-file=/dev/null -vvvv --archive --links --safe-links --executability --times --recursive --sparse --parital --compress --compress-level=3 --port=22 --stats --human-readable --progress file_to_transfer user@host:/foo/destination |
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
// run at https://console.online.net/en/order/server | |
(function () { | |
var servers = document.querySelectorAll(".server-availability > tbody > tr"), | |
i = 0, | |
tds = [], | |
server = { | |
name: "", | |
CPU: "", | |
RAM: "", | |
parsedRAM: "", |
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
x11vnc -passwdfile filename -auth /var/lib/lightdm/.Xauthority -reopen -shared -forever -loop -solid darkblue |
OlderNewer