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 example is fully qualified as "github.com/joshdk/example" | |
package example | |
import ( | |
"github.com/dave/jennifer/jen" | |
"fmt" | |
) | |
type Person struct { | |
Name 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
2017/04/25 01:18:33 [INFO] Terraform version: 0.9.3 1601af7a076fd03fe940455db7fd01dfa747c795 | |
2017/04/25 01:18:33 [INFO] Go runtime version: go1.8 | |
2017/04/25 01:18:33 [INFO] CLI args: []string{"/Users/joshdk/.bin/terraform", "apply", "-no-color"} | |
2017/04/25 01:18:33 [INFO] CLI command args: []string{"apply", "-no-color"} | |
2017/04/25 01:18:33 [INFO] command: backend initialized: <nil> | |
2017/04/25 01:18:33 [INFO] command: backend <nil> is not enhanced, wrapping in local | |
2017/04/25 01:18:33 [INFO] backend/local: starting Apply operation | |
2017/04/25 01:18:33 [INFO] terraform: building graph: GraphTypeInput | |
2017/04/25 01:18:33 [INFO] terraform: building graph: GraphTypeValidate | |
2017/04/25 01:18:33 [INFO] backend/local: apply calling Refresh |
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
from nose.plugins.skip import SkipTest | |
from nose.tools import assert_raises | |
from multiprocess import Pool | |
def skip(func): | |
def wrapper(*args, **kwargs): | |
raise SkipTest("Test %s is skipped" % func.__name__) | |
wrapper.__name__ = func.__name__ | |
return wrapper |
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 json | |
import urllib2 | |
import sys | |
from threading import Thread | |
class BandCamp(object): | |
def __init__(self, url): | |
self.album_id = self.get_id(url) | |
self.album_data = self.get_json() |
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
listen 80; | |
server_name localhost | |
access_log /var/log/nginx/search.access.log; | |
error_log /var/log/nginx/search.error.log; | |
location /static/accounts/ { | |
alias /etc/webapps/briefcase/briefcase/core/accounts/static/accounts/; | |
expires 30d; |