The following gist is an extract of the article Flask-SQLAlchemy Caching. It allows automated simple cache query and invalidation of cache relations through event among other features.
# pulling one User object
user = User.query.get(1)
| #include "mach_gettime.h" | |
| #include <mach/mach_time.h> | |
| #define MT_NANO (+1.0E-9) | |
| #define MT_GIGA UINT64_C(1000000000) | |
| // TODO create a list of timers, | |
| static double mt_timebase = 0.0; | |
| static uint64_t mt_timestart = 0; |
| -- Numbers to LaTeX converter | |
| -- this small AppleScript takes the first table in the first sheet of the first | |
| -- Numbers document and turns it into a LaTeX table (well, sort of). | |
| -- It will be copied to the clipboard. | |
| -- This is a 5-minute quick hack and mostly unsupported, but if you like it or | |
| -- if you have any enhancements (not feature request :-)), plese send them to | |
| -- gundlach <at> speedata.de | |
| tell application "Numbers" |
| CREATE EXTENSION plpython2u; | |
| -- TODO: | |
| -- 1) Кэш соединения с ZMQ | |
| -- 2) Найти оптимальный способ сериализаци данных | |
| -- 3) Рассмотреть вариант с LISTEN/NOTIFY и PGQ | |
| CREATE OR REPLACE FUNCTION row_trigger() | |
| RETURNS TRIGGER | |
| AS $$ | |
| import json, zmq |
The following gist is an extract of the article Flask-SQLAlchemy Caching. It allows automated simple cache query and invalidation of cache relations through event among other features.
# pulling one User object
user = User.query.get(1)
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| # Use Python 3 for easy unicode | |
| $ virtualenv -p python3 .env | |
| $ source .env/bin/activate | |
| $ pip install django | |
| $ deactivate | |
| # Start new django project and app | |
| $ django-admin.py startproject mysite | |
| $ ./manage.py migrate | |
| $ ./manage.py createsuperuser |
| *~ |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition: