Skip to content

Instantly share code, notes, and snippets.

@nmfzone
nmfzone / celery-beat-appcom.conf
Last active Oct 27, 2020
Django Production Simple Configuration using Supervisor + Gunicorn + Celery + Flower + Pyenv Virtualenv
View celery-beat-appcom.conf
########## DO NOT INCLUDE THIS ##########
# File Location: /etc/supervisor/conf.d/celery-beat-appcom.conf
#########################################
[program:celery_beat_appcom]
process_name=%(program_name)s
command=/home/johndoe/django-app/celery-beat/run-appcom-celery-beat.sh
startsecs=10
autostart=true
autorestart=true
@bl4ck5un
bl4ck5un / responsive-semantic-ui.css
Created May 12, 2017
Responsive helpers (mobile-only etc.) for semantic-ui
View responsive-semantic-ui.css
/* Semantic UI has these classes, however they're only applicable to*/
/* grids, containers, rows and columns.*/
/* plus, there isn't any `mobile hidden`, `X hidden` class.*/
/* this snippet is using the same class names and same approach*/
/* plus a bit more but to all elements.*/
/* see https://github.com/Semantic-Org/Semantic-UI/issues/1114*/
/* Mobile */
@media only screen and (max-width: 767px) {
[class*="mobile hidden"],
@remyvhw
remyvhw / semantic-ui-algolia.js
Last active Jun 22, 2018
Semantic UI & Algolia search
View semantic-ui-algolia.js
/*
Implementing Semantic UI and Algolia search can be a pain in the but if you're not use to deal with Semantic UI API stuff. This feels a little bit hackish but so far it works well enough; bonus for not needing the Algolia javascript client.
*/
var algolia = {
id: "Algolia app ID",
key: "Public key",
index: "Index name"
};