This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Setup plugins (remember trailing semi-colon) | |
-- (Use :PaqInstall or :PaqUpdate) | |
require "paq-nvim" { | |
-- Let Paq manage itself | |
"savq/paq-nvim"; | |
-- LSP support | |
"neovim/nvim-lspconfig"; | |
-- Auto complete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function InvalidSetException(message) { | |
this.message = message | |
} | |
function DateRange(lower, upper) { | |
this.empty = false; | |
this.lower = lower; | |
this.upper = upper; | |
if (this.lower) { | |
this.lower = this.lower.clone(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import os | |
import re | |
from lektor.db import F | |
from lektor.types import SelectType | |
from lektor.pluginsystem import Plugin | |
class AttachmentType(SelectType): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assumes app = Flask(...) | |
import json | |
from flask.sessions import SecureCookieSession, SecureCookieSessionInterface | |
class JSONSecureCookieSession(SecureCookieSession): | |
serialization_method = json | |
class JSONSecureCookieSessionInterface(SecureCookieSessionInterface): | |
session_class = JSONSecureCookieSession |