Done on Linux (Ubuntu tested)
cd $HOME
virtualenv --python=/usr/bin/python2.7 pgadmin4
source pgadmin4/bin/activate
# Notes: | |
# Python 3 assumed, but shouldn't be hard to backport to Python 2 | |
# Cobbled together from two slightly different implementations, sorry for any inconsistencies. | |
# This creates two models, NavigationMenu, and NavigationMenuItem. A site can have many NavigationMenus, which are referenced from | |
# the template by location. E.g., 'footer', 'left_nav'. You can also create single-item lists for special purpose links/buttons, | |
# such a privacy_policy or homepage_cta. This helps to reduce hard coding in templates. | |
# NavigationMenuItem mixes in some different link types (Page, Document, URL) and presents them in a consistent way. It provides | |
# the ability to override the title of the referenced object. |
def CoinDeterminer(num) | |
return num if num < 5 | |
count = num / 11 | |
if (num%11).even? | |
return count + 2 | |
else | |
return count + 1 | |
end | |
end |
// generator | |
const generator = (schema, min = 1, max) => { | |
max = max || min; | |
return Array.from({ | |
length: faker.random.number({ | |
min, | |
max, | |
}), | |
}).map(() => { | |
const innerGen = (anySchema) => Object.keys(anySchema).reduce((entity, key) => { |
Arch is great and its wiki covers most use cases. This is just a reminder that what works and which newbie tricks are required to get and install these fonts.
Read https://wiki.archlinux.org/index.php/Microsoft_fonts.
https://github.com/fphoenix88888/ttf-mswin10-arch
This package holds all files nedded to install win10 ms fonts. These are just the pacman-cache-install-ready-sort-of-a-files.
They are in the form of: ttf-ms-win10-10.0.17763.1-1-any.pkg.tar.xz
, and they are the result of a succesful makepkg
import {useEffect, useState} from 'react'; | |
import {Alert} from 'react-native'; | |
import BackgroundGeolocation from '@mauron85/react-native-background-geolocation'; | |
import {defaultLocation} from '../utils/vars'; | |
import {getDistanceFromLatLonInKm} from '../utils/getDistance'; | |
const useTracking = (isActive: boolean) => { | |
const [location, setLocation] = useState(defaultLocation); | |
const [history, setHistory] = useState<any>([]); | |
const [distance, setDistance] = useState<number>(0); |
#!/bin/bash | |
# requires https://stedolan.github.io/jq/download/ | |
# config | |
KEYCLOAK_URL=http://localhost:8080/auth | |
KEYCLOAK_REALM=realm | |
KEYCLOAK_CLIENT_ID=clientId | |
KEYCLOAK_CLIENT_SECRET=clientSecret | |
USER_ID=userId |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs