This file contains hidden or 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
... | |
# Install dependencies | |
COPY ./requirements.txt /requirements.txt | |
RUN apk add --update --no-cache postgresql-client | |
RUN apk add --update --no-cache --virtual .tmp-build-deps \ | |
gcc libc-dev linux-headers postgresql-dev | |
RUN pip install -r /requirements.txt | |
RUN apk del .tmp-build-deps |
This file contains hidden or 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
function createStore(reducer, initialState) { | |
let state = initialState; | |
const listeners = []; | |
const subscribe = listener => listeners.push(listener); | |
const getState = () => state; | |
const dispatch = action => { | |
state = reducer(state, action); | |
listeners.forEach(l => l()); | |
}; |
This file contains hidden or 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
def put(self, request, pk=None): | |
"""Handle updating an object""" | |
return Response({'method': 'PUT'}) | |
def patch(self, request, pk=None): | |
"""Handle partial update of object""" | |
return Response({'method': 'PATCH'}) |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains hidden or 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 | |
.git | |
.gitignore | |
# Docker | |
.docker | |
# Python | |
app/__pycache__/ | |
app/*/__pycache__/ |
OlderNewer