pip install -r requirements.txt
python chunker.py
class FacetedPagination(pagination.PageNumberPagination): | |
""" | |
If requested, will include facet information in the response | |
Example response | |
``` | |
{ | |
"links": { | |
"next": .., | |
"previous": .., |
const puppeteer = require('puppeteer'); | |
const fs = require('fs'); | |
const URL = https://apexcharts.com/" // set this to the url you want to generate a pdf of | |
(async () => { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto(URL, {waitUntil: 'networkidle2'}); | |
await page.pdf({path: 'download.pdf', format: 'A4'}); | |
await browser.close(); |
<template> | |
<input type=text v-model='value' @kepup='debounceExpensiveMethod' /> | |
</template> | |
<script> | |
export default { | |
name: 'SomeComponent', | |
data () { | |
return { | |
timeout: null | |
} |
<template> | |
<v-autocomplete | |
v-model='item' | |
@update:searchInput='valueTyped' | |
:items='computedItems' | |
v-bind='extraProps' > | |
</v-autocomplete> | |
</template> | |
<script> |
[bumpversion] | |
current_version = 1.0.0 | |
commit = False | |
tag = False | |
[bumpversion:file:api/custom_settings.py] |
--- | |
- hosts: localhost | |
tasks: | |
- name: Update apt | |
apt: | |
update_cache: yes | |
become: yes | |
become_user: root | |
become_method: sudo |
STATUS_CODES = { | |
100: "100 Continue", | |
101: "101 Switching Protocols", | |
102: "102 Processing", | |
200: "200 OK", | |
201: "201 Created", | |
202: "202 Accepted", | |
203: "203 Non-authoritative Information", | |
204: "204 No Content", |
version: "2" | |
services: | |
postgres: | |
image: postgres:9.4 | |
container_name: kong-database | |
ports: | |
- "5432:5432" | |
environment: | |
- POSTGRES_USER=kong |
import requests | |
def send_sms(to, content): | |
token = '..' | |
email = '..' | |
headers = {'Content-type': 'application/json', 'Accept': 'application/json'} | |
params = { | |
token: token, | |
email: email | |
} |