Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| ;; For supporting more PG types, see https://github.com/remodoy/clj-postgresql | |
| (ns pg-test.types | |
| (:require [cheshire.core :as json] | |
| [clojure.java.jdbc :as jdbc]) | |
| (:import [org.postgresql.util PGobject] | |
| [java.sql PreparedStatement])) | |
| ;; Writing | |
| (defn- to-pg-json [data json-type] |
| # -*- coding: utf-8 -*- | |
| from __future__ import unicode_literals | |
| from django.db import migrations, models | |
| from django_cryptography.fields import encrypt | |
| app_with_model = 'account' | |
| model_with_column = 'User' | |
| column_to_encrypt = 'email_address' | |
| column_field_class = models.CharField |
| (defproject pseudoethnological "0.1.0-SNAPSHOT" | |
| :license {:name "Eclipse Public License" | |
| :url "http://www.eclipse.org/legal/epl-v10.html"} | |
| :jvm-opts ["-Xmx2g" "-server"] | |
| :dependencies [[org.clojure/clojure "1.8.0"] | |
| [overtone "0.10.3"]]) |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
| class mylist(SingleTableMixin, FilterView): | |
| ... | |
| def get_context_data(self, **kwargs): | |
| queryset = kwargs.pop('object_list', None) | |
| if queryset is None: | |
| self.object_list = self.model.objects.all() | |
| ... | |
| return super().get_context_data(**kwargs) | |
| ;; {:deps {org.babashka/cli {:mvn/version "0.5.40"} | |
| ;; babashka/fs {:mvn/version "0.1.11"}}} | |
| (ns test-args | |
| {:clj-kondo/config '{:lint-as {test-args/deftest clojure.core/defn}}} | |
| (:require | |
| [babashka.cli :as cli] | |
| [clojure.test :as t :refer [is]])) | |
| (def ^:dynamic *test-args* (cli/parse-opts *command-line-args*)) |
| ;;; Start lisp, for example run sbcl. | |
| ;;; $ sbcl | |
| ;;; First uninstall all systems. | |
| ;;; ref: https://github.com/quicklisp/quicklisp-client/issues/147#issuecomment-1631778086 | |
| (mapc #'ql:uninstall (mapcar #'ql-dist:short-description (ql-dist:installed-systems t))) | |
| ;;; To be able to use slime, we install the slime helper | |
| (ql:quickload "quicklisp-slime-helper") |