GSoD organization administrator guide
Google Season of Docs Timeline
Deadline for organization applications: April 2, 2024 at 18:00 UTC
| [//lasso | |
| /* | |
| [Image] type for Lasso 8.x | |
| This is a drop-in replacement for the native [Image] type in Lasso 8.x. This version requires | |
| [OS_Process] and calls the ImageMagick command line utilities rather than relying on the | |
| low-level libraries. Doing so eliminates the need to install an older version of ImageMagick and | |
| its dependencies on the server for compatibility. It is recommended that the ImageMagick module | |
| be removed from LassoModules when using this replacement to avoid startup errors. |
GSoD organization administrator guide
Google Season of Docs Timeline
Deadline for organization applications: April 2, 2024 at 18:00 UTC
| def setup_models(dbsession): | |
| """ | |
| Load table data in the following order: | |
| table_1 | |
| table_2 | |
| """ | |
| path = os.path.dirname(__file__) | |
| fixture = os.path.join(path, "data/table_1.tsv") | |
| with open(fixture, "r") as tsvfile: | |
| tbl_reader = csv.reader(tsvfile, delimiter="\t") |
| /** | |
| * Source: | |
| * https://github.com/DataTables/Plugins/blob/master/filtering/row-based/range_dates.js | |
| * | |
| * Filter a column on a specific date range. Note that you will likely need | |
| * to change the id's on the inputs and the columns in which the start and | |
| * end date exist. | |
| * | |
| * @name Date range filter | |
| * @summary Filter the table based on two dates in different columns |
| from pyramid.decorator import reify | |
| from .principals import Principals as P | |
| class AccessToken: | |
| def __init__(self, type, user=None, claims=None): | |
| self.type = type | |
| self.user = user | |
| self.claims = claims or [] |
| {% macro render_flash(key, cls) %} | |
| {% if request.session.peek_flash(key) %} | |
| {% for msg in request.session.pop_flash(key) %} | |
| <div class="alert alert-{{ cls }} alert-dismissible" role="alert"> | |
| <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> | |
| {{ msg }} | |
| </div> | |
| {% endfor %} | |
| {% endif %} | |
| {% endmacro %} |
| DEBUG=yes | |
| AUTH_SECRET=seekrit | |
| AUTH_EXPIRES=3600 | |
| HTTPS_ONLY=no | |
| WEB_CONCURRENCY=4 | |
| TRUSTED_PROXY=127.0.0.1 | |
| BIND_HOST=127.0.0.1 |
| Slides | |
| ------ | |
| https://docs.google.com/presentation/d/1WS_nFfSn5MDf-Ic5ePLuCh_H7vdTaQTR0UyzFCgO8EY/edit?usp=sharing | |
| Commands | |
| -------- | |
| export ENV=${PWD}/env | |
| echo $ENV | |
| python3 -m venv $ENV | |
| tree -C -L 3 env |
I hereby claim:
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Sortable Demo</title> | |
| <!-- Latest compiled and minified CSS --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/> | |
| </head> | |
| <body> | |
| <!-- Simple List --> |