-
Adwaita Dark
- Firefox config: about:config: widget.content.gtk-theme-override: Adwaita:light
-
Firefox
- set minimal view Addons
This file contains 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
syntax on | |
filetype plugin indent on | |
set nocompatible | |
set encoding=utf-8 | |
set fileencodings=utf-8 | |
" prevent shada loading | |
" set shada="NONE" |
This file contains 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
# We assume 2 top level dirs for backend (Django app) and frontend (VueJS app). | |
# This is for a development setup NOT PRODUCTION-SAFE | |
# Django app uses django-configurations | |
# Environment variables are stored locally in .env file (IGNORE IN REPO) | |
#### docker-compose.yml #### | |
version: '3.4' | |
x-env: |
This file contains 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 re | |
CASE_RE = r'^Case-(?P<case_id>\d+)' | |
MERGE_RE = r'^(merge|merged) (?P<branch_name>[\w-]+)' | |
def prefix_commit_message(repo, **kwargs): | |
commitctx = repo.commitctx | |
""" |
This file contains 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
version: '2' | |
services: | |
db: | |
image: postgres | |
redis: | |
image: redis |
This file contains 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
from .layout import FormHelper, FormHelperMixin | |
class MyForm(FormHelperMixin, forms.ModelForm): | |
class FormHelperMeta: | |
# works like Meta, we just use to store property overrides | |
# doesn't need to inherit | |
# helper_class = MyCustomHelper | |
submit_text = "Submit!" | |
action = reverse('account:login') |
This file contains 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
from django import forms | |
from django.contrib.localflavor.gb.forms import GBPostcodeField | |
from crispy_forms.helper import FormHelper | |
from crispy_forms.layout import Layout, Fieldset, Submit | |
from crispy_forms.bootstrap import FormActions | |
from .models import Signup |
This file contains 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
input:not(.urlbar-input):not(.textbox-input):not(.form-control):not([type='checkbox']) { | |
-moz-appearance: none !important; | |
background-color: inherit; | |
color: inherit; | |
} | |
#downloads-indicator-counter { | |
color: white; | |
} |
This file contains 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
""" | |
Breadth-first search maze runner | |
maze_runner.py path-to-maze-file | |
Make sure your map has an entrance and exit on left & right side | |
respectively. | |
EXAMPLE: | |
########### |
This file contains 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
""" | |
https://en.wikipedia.org/wiki/Breadth-first_search | |
""" | |
import queue | |
def bfs(graph, root): | |
q = queue.Queue() |