I hereby claim:
- I am bmease on github.
- I am bmease (https://keybase.io/bmease) on keybase.
- I have a public key whose fingerprint is FB07 CB28 558F 9EED 29B0 161B 79B4 306D 7F73 E60C
To claim this, I am signing this object:
class EventCreateView extends Backbone.View | |
id: 'overlay' | |
initialize: -> | |
@template = _.template($('#template-event-create').html()) | |
@render() | |
events: { | |
'submit form': 'submit' | |
'click .cancel': 'close' |
FROM dockerfile/python | |
RUN mkdir /app | |
WORKDIR /app | |
ADD requirements.txt /app/ | |
RUN pip install -r requirements.txt | |
RUN python -m spacy.en.download |
from flask import request | |
from flask.ext.api import FlaskAPI | |
import spacy.en | |
nlp = spacy.en.English() | |
app = FlaskAPI(__name__) | |
POS_TO_STRING = { |
api: | |
build: ./api | |
command: python api.py | |
expose: | |
- "5000" | |
volumes: | |
- ./api:/app | |
web: | |
image: nginx |
api: | |
build: ./api | |
command: uwsgi --socket 0.0.0.0:5000 --protocol=http -w wsgi:app | |
expose: | |
- "5000" | |
web: | |
build: ./web | |
ports: | |
- "80:80" |
FROM dockerfile/python | |
RUN mkdir /app | |
WORKDIR /app | |
ADD . /app/ | |
RUN pip install -r requirements.txt | |
RUN python -m spacy.en.download |
I hereby claim:
To claim this, I am signing this object:
def pct_breakdown(self, grouping): | |
# provide the grouping and this function will return the percent upvoted for each group | |
rating_breakdown = {} | |
groups = IdeaInteraction.objects.filter(idea=self.pk).values(grouping) | |
for item in groups: | |
for key, value in item.items(): | |
upvotes = IdeaInteraction.objects.filter(idea=self.pk, vote='up-vote', **{key: value}).count() | |
downvotes = IdeaInteraction.objects.filter(idea=self.pk, vote='down-vote', **{key: value}).count() | |
rating = (upvotes / (upvotes + downvotes)) * 100 | |
rating_breakdown[value] = rating |
function appendLists(el) { | |
const boardId = el.value | |
// skip boards with no lists | |
if (!lists[boardId]) { return } | |
// create a new ul | |
let ul = document.createElement('ul') | |
// append all the list li's to the new ul |
Name | Type | Required | Default value |
---|---|---|---|
time | String | true |
Name |
---|
dt |
hour |
minute |
period |
display |
suggestions |
Name |
---|
open |
value |
originalDate |
string
undefined
undefined