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
List<IOException> deserializationErrors = new ArrayList<IOException>(); | |
IntStream.range(0, items.length) | |
.parallel() | |
.forEach(i -> { | |
String messageBody = messages.get(i).getBody(); | |
try { | |
items[i] = mapper.readValue(messageBody, type); | |
} catch (IOException e) { | |
deserializationErrors.add(e); | |
} |
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
IntStream.range(0, items.length) | |
.parallel() | |
.forEach(i -> { | |
String messageBody = messages.get(i).getBody(); | |
try { | |
items[i] = mapper.readValue(messageBody, type); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} | |
}); |
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
foreach ($_GET as $key => $value) { | |
$_GET[$key] = filter_input(INPUT_GET, $key, FILTER_SANITIZE_STRING); | |
} | |
foreach ($_POST as $key => $value) { | |
$_POST[$key] = filter_input(INPUT_POST, $key, FILTER_SANITIZE_STRING); | |
} | |
foreach ($_COOKIE as $key => $value) { | |
$_COOKIE[$key] = filter_input(INPUT_COOKIE, $key, FILTER_SANITIZE_STRING); |
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
ngAnnotate: { | |
options: { | |
remove: true, | |
add: true, | |
singleQuotes: true | |
}, | |
js: { | |
files: [ | |
{ | |
expand: true, |
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
#!/bin/sh | |
git stash | |
git pull | |
git push | |
git stash apply |