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
@GetMapping(value = "/foo") | |
@ResponseBody | |
public ResponseEntity<List<YourEnum>> listYourEnum() { | |
return new ResponseEntity<List<YourEnum>>(Arrays.asList(YourEnum.values()), HttpStatus.OK); | |
} |
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
import logging | |
from flask import Flask | |
from werkzeug.utils import find_modules, import_string | |
def configure_logging(): | |
# register root logging | |
logging.basicConfig(level=logging.DEBUG) | |
logging.getLogger('werkzeug').setLevel(logging.INFO) |
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
let state = [ "AK - Alaska", | |
"AL - Alabama", | |
"AR - Arkansas", | |
"AS - American Samoa", | |
"AZ - Arizona", | |
"CA - California", | |
"CO - Colorado", | |
"CT - Connecticut", | |
"DC - District of Columbia", | |
"DE - Delaware", |
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/bash | |
# Katie Harron - @pibby | |
# This bash script will setup a new Jekyll blog post in Markdown and open it for editing in Sublime Text 2 | |
echo "Post Title: " | |
read title | |
echo "Post Description: " | |
read desc | |
echo "Post Tags: " | |
read tags |