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
#!/usr/bin/env sh | |
# Start steam in offline mode without prompting to go online. | |
# https://gaming.stackexchange.com/a/184717 | |
# NOTE: You may need to log into steam in online mode once. | |
# Steam resets the SkipOfflineModeWarning option on every startup. | |
# So we have to enable it every time before starting steam. | |
LOGINUSERS=~/.steam/debian-installation/config/loginusers.vdf |
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
// CHALLENGE (work in pairs): | |
// Improve code snippets listed below – | |
// | |
// 1 - implement Xml class instead of XmlMarshaller | |
class XmlMarshaller { | |
byte[] marshallToXml(Invoice invoice) { | |
ByteArrayOutputStream outStream = new ByteArrayOutputStream(); | |
JaxbMarshaller jaxbMarshaller = new JaxbMarshaller(Invoice.class); |
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
// | |
// CHALLENGE (work in pairs): | |
// Move from f(o) -> o.f() and make sure that the code is CQS compliant. | |
// | |
// 1 | |
// Turn on object-thinking and re-design the code accordingly | |
/* | |
class CsvParser<T extends Line> { |