One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/bin/bash | |
| if ! command -v curl &> /dev/null; then | |
| echo "This script needs curl. Please install curl." | |
| exit -1 | |
| fi | |
| if ! command -v jq &> /dev/null; then | |
| echo "This script needs jq. Please install jq." | |
| exit -1 |
| #!/bin/bash | |
| # This script takes a PDF or list of PDFs and outputs a file(s) | |
| # named <file>_scanned.pdf that looks like it has been scanned | |
| # | |
| # Requires imagemagic and popper to be installed (brew install imagemagick poppler) | |
| # | |
| # Accepts: a list of files | |
| # Usage: ./<scriptfilename> pdf1.pdf pdf2.pdf | |
| # | |
| # To use as a macOS automator quick action you need to: |
| # Editors | |
| .vscode/ | |
| .idea/ | |
| # Vagrant | |
| .vagrant/ | |
| # Mac/OSX | |
| .DS_Store |
| # Packages reqd: pydub, ffmpeg | |
| # pydub - pip install pydub | |
| # ffmpeg: | |
| # sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next | |
| # sudo apt-get update | |
| # sudo apt-get install ffmpeg | |
| ## Load the m4a files (in M4a_files.tar.gz) |
| from flask import Flask | |
| from flask.ext.sqlalchemy import SQLAlchemy | |
| from flask.ext.wtf import Form | |
| from flask.ext.babel import gettext | |
| from wtforms import SelectField, TelField, TextField, FormField, Fieldlist, SubmitField | |
| from wtforms.validators import Optional, Required | |
| app = Flask(__name__) | |
| db = SQLAlchemy(app) |
| <form method="post" action=""> | |
| {{ form.name}} | |
| {{ form.hidden_tag() }} | |
| <br/> | |
| {% for entry in form.hours %} | |
| {{ loop.index0|dow }} | |
| {{ entry() }} | |
| {% endfor %} | |
| <input type="submit"/> | |
| </form> |
| <h2>Categories</h2> | |
| <ul> | |
| {% assign categories_list = site.categories %} | |
| {% if categories_list.first[0] == null %} | |
| {% for category in categories_list %} | |
| <li><a href="#{{ category | downcase | downcase | url_escape | strip | replace: ' ', '-' }}">{{ category | camelcase }} ({{ site.tags[category].size }})</a></li> | |
| {% endfor %} | |
| {% else %} | |
| {% for category in categories_list %} | |
| <li><a href="#{{ category[0] | downcase | url_escape | strip | replace: ' ', '-' }}">{{ category[0] | camelcase }} ({{ category[1].size }})</a></li> |
| document.addEventListener('invalid', (function(){ | |
| return function(e) { | |
| //prevent the browser from showing default error bubble / hint | |
| e.preventDefault(); | |
| // optionally fire off some custom validation handler | |
| // myValidation(); | |
| }; | |
| })(), true); |