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 ch.bwz.m183.caesar; | |
import static org.junit.jupiter.api.Assertions.*; | |
class CaesarImplTest { | |
@org.junit.jupiter.api.Test | |
void encrypt_smokeTest_Valid() { | |
String encrypted = new CaesarImpl().encrypt("abc", 23); | |
assertEquals("xyz", encrypted); |
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 | |
$val = htmlspecialchars($_REQUEST['cookieval']); | |
$key = htmlspecialchars($_REQUEST['cookiekey']); | |
if(isset($val) && $val != "" && isset($key)) { | |
// todo create http only cookies | |
setcookie($key, $val); | |
echo "cookie $key = $val set"; | |
} | |
?> |
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
$(document).load(function () { | |
// remove paywall | |
$("div[style='display: block;']").remove(); | |
// enable scrollbar | |
$('body').css('overflow-y','auto'); | |
}); |
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
/** | |
* you need to be able to change resolutions... | |
* use a this page: https://jira.url/browse/ticketRef?jql=project%20%3D%20%27PROJECTNAME%27%20and%20resolution%20%3D%20Unresolved%20and%20status%20%3D%20done | |
* for all resolution check: | |
* <select name="resolution" class="select" id="resolution"> | |
* <option selected="selected" value="1"> | |
* ... | |
* | |
**/ | |
var arr= $('.issue-list li a'); |
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
{ | |
"count": 1, | |
"filterInclude": { | |
"brand": "SKODA", | |
"psMin": 100, | |
"priceMax": 30000 | |
}, | |
"trainingSet": [ | |
{ | |
"input": { |
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
{ | |
"data": [ | |
{ | |
"brand": "SKODA", | |
"model_de": "SUPERB LIMOUSINE STYLE", | |
"engine_de": "2000ccm 190PS/140kW 4 Zylinder TDI SCR Diesel", | |
"fuel_type": "D", | |
"engine_capacity": 2000, | |
"power_hp": 190, | |
"sale_type": "Demo", |
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
{ | |
"offset": 5, | |
"count": 1, | |
"trainingSet": [ | |
{ | |
"input": { | |
"price": 10000 | |
}, | |
"output": { | |
"match": 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
/** | |
* Created by longstone on 23/06/15. | |
*/ | |
var promisemagic = function (millisecondsToWait, success) { | |
var promise = new Promise(function (resolve, reject) { | |
setTimeout(function () { | |
if (success) { | |
resolve('yay'); | |
} else { |