I hereby claim:
- I am bverbeken on github.
- I am bverbeken (https://keybase.io/bverbeken) on keybase.
- I have a public key whose fingerprint is 5DC6 51DE A375 C585 6E3E F081 EDF5 A528 591C A784
To claim this, I am signing this object:
| @RequestMapping(method = POST) | |
| @ResponseBody | |
| public ResponseEntity<?> submit(@Valid MyRequestType request, BindingResult result) { | |
| if (result.hasErrors()) { | |
| return new ResponseEntity<>(getErrorsInASaneFormat(result), BAD_REQUEST); | |
| } | |
| // do stuff | |
| return new ResponseEntity(CREATED); | |
| } |
| deploy() { | |
| heroku maintenance:on -r $1 | |
| git push $1 | |
| heroku maintenance:off -r $1 | |
| } |
| object MyImplicits { | |
| implicit def fieldString_To_OptionString(duck: {def getValue(): String}): Option[String] = { | |
| duck match { | |
| case null => None | |
| case x => Option(x.getValue()) | |
| } | |
| } | |
| implicit def fieldDecimal_To_OptionOfBigDecimal(duck: {def getValue(): java.math.BigDecimal}): Option[BigDecimal] = { |
| var Slanger = (function() { | |
| var crypto = require('crypto'); | |
| var request = require('request'); | |
| var Slanger = function (options) { | |
| this.options = options; | |
| this.options.domain = this.options.domain || 'localhost'; | |
| this.options.domain = this.options.domain || 4567; | |
| this.options.scheme = this.options.scheme || 'http'; |
I hereby claim:
To claim this, I am signing this object:
| import random | |
| class RollAbilitiesAttempt: | |
| def __init__(self): | |
| self.rolls = self.roll_abilities() | |