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
goxfer: | |
image: data.golang1.9:1 | |
environment: | |
- DB_HOST=mongodb | |
- DB_NAME=collector | |
- DB_COLLECTION_NAME=collected | |
- BUXFER_API_ENDPOINT=https://www.buxfer.com/api | |
- BUXFER_USERNAME=your_buxfer_username | |
- BUXFER_PASSWORD=your_buxfer_password | |
- EXPENSE_ACCOUNT_BUXFER=expenses |
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 main | |
import ( | |
"os" | |
"fmt" | |
"errors" | |
"github.com/parnurzeal/gorequest" | |
) | |
var ( |
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
try { | |
throw text => console.log(text) | |
} catch (fn) { | |
fn('hello from catch') // it prints out "hello from catch" | |
} |
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 main | |
import ( | |
"fmt" | |
"os" | |
"errors" | |
"github.com/parnurzeal/gorequest" | |
) | |
type LoginResponse struct { |
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
goxfer: | |
image: data.golang1.9:1 | |
environment: | |
- DB_HOST=mongodb | |
- DB_NAME=collector | |
- DB_COLLECTION_NAME=collected | |
- BUXFER_API_ENDPOINT=https://www.buxfer.com/api | |
- BUXFER_USERNAME=your_buxfer_username | |
- BUXFER_PASSWORD=your_buxfer_password | |
volumes: |
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 main | |
import ( | |
"fmt" | |
"os" | |
"gopkg.in/mgo.v2" | |
) | |
var ( | |
DB_HOST = os.Getenv("DB_HOST") |
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 main | |
import ( | |
"os" | |
) | |
var ( | |
DB_HOST = os.Getenv("DB_HOST") | |
DB_NAME = os.Getenv("DB_NAME") | |
DB_COLLECTION_NAME = os.Getenv("DB_COLLECTION_NAME") |
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
goxfer: | |
image: data.golang1.9:1 | |
environment: | |
- DB_HOST=mongodb | |
- DB_NAME=collector | |
- DB_COLLECTION_NAME=collected | |
volumes: | |
- ./go:/go/src/app | |
depends_on: | |
- mongodb |
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
version: '2' | |
services: | |
setup-golang: | |
# start by installing all the dependencies | |
command: glide install | |
image: data.golang1.9:1 | |
build: | |
# build the image from docker go dockerfile | |
dockerfile: docker/Dockerfile |
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
version: '2' | |
services: | |
setup-python: | |
image: data.python3:1 | |
build: | |
dockerfile: docker/Dockerfile | |
context: ./python | |
volumes: | |
- ./python:/opt/app |