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 com.urbanairship.octobot; | |
import com.surftools.BeanstalkClientImpl.ClientImpl; | |
import org.apache.log4j.Logger; | |
// This class handles all interfacing with a Beanstalk in Octobot. | |
// It is responsible for connection initialization and management. | |
public class Beanstalk { |
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
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- |
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 com.somecompany.app.process; | |
import java.awt.image.BufferedImage; | |
import java.io.ByteArrayOutputStream; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import javax.imageio.ImageIO; |
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
Background | |
---------- | |
This kata simulates a babysitter working and getting paid for one night. The rules are pretty straight forward: | |
The babysitter | |
- starts no earlier than 5:00PM | |
- leaves no later than 4:00AM | |
- gets paid $12/hour from start-time to bedtime | |
- gets paid $8/hour from bedtime to midnight | |
- gets paid $16/hour from midnight to end of job |
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
$ kong start | |
[INFO] Using configuration: /etc/kong/kong.yml | |
[INFO] Proxy port.........8000 | |
Admin API port.....8001 | |
dnsmasq port.......8053 | |
Database...........cassandra keepalive=60000 hosts=kongdb.org port=35579 timeout=1000 keyspace=kong | |
[INFO] Connecting to the database... | |
[WARN] Setting "memory_cache_size" to default 128MB | |
[INFO] dnsmasq started | |
[OK] Started |
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
$ kong stop | |
[INFO] Using configuration: /etc/kong/kong.yml | |
[INFO] dnsmasq stopped | |
[OK] Stopped |