- create branch (from master)
- work on branch
- deploy to staging (merge onto staging branch) for testing
- if issue found, repeat step 2/3
- create Pull Request when ready to merge (to master)
- code reviewed (and deal with comments)
- merged to master
deploy to stagingif issue found, repeat from the start- deploy to production
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 argparse | |
import pkg_resources | |
from datetime import datetime | |
from distutils.version import LooseVersion | |
import requests | |
from packaging.version import LegacyVersion | |
from packaging.specifiers import SpecifierSet | |
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
[ | |
{ | |
"state":"Alaska", | |
"latitude":61.3850, | |
"longitude":-152.2683 | |
}, | |
{ | |
"state":"Alabama", | |
"latitude":32.7990, | |
"longitude":-86.8073 |
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
const { Database, Resource: SequelizeResource } = require('admin-bro-sequelizejs') | |
const { BaseRecord } = require('admin-bro') | |
const { Op } = require('sequelize') | |
class Resource extends SequelizeResource { | |
titleField() { | |
return this.decorate().titleProperty().name() | |
} |
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
[tool.poetry] | |
name = "myproject" | |
version = "0.0.1" | |
description = "" | |
authors = [] | |
[tool.poetry.dependencies] | |
django-moneyfield = {git = "https://github.com/dangerfarms/django-moneyfield.git"} | |
[build-system] |
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
country | latitude | longitude | name | |
---|---|---|---|---|
AF | 33.93911 | 67.709953 | Afghanistan | |
AG | 17.060816 | -61.796428 | Antigua and Barbuda | |
AI | 18.220554 | -63.068615 | Anguilla | |
AN | 12.226079 | -69.060087 | Netherlands Antilles | |
AO | -11.202692 | 17.873887 | Angola | |
AS | -14.270972 | -170.132217 | American Samoa | |
AT | 47.516231 | 14.550072 | Austria | |
AU | -25.274398 | 133.775136 | Australia | |
BA | 43.915886 | 17.679076 | Bosnia and Herzegovina |
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.contrib.admin.options import BaseModelAdmin | |
from django.contrib.admin.views.autocomplete import AutocompleteJsonView | |
from django.contrib.admin.widgets import ( | |
AutocompleteSelect, AutocompleteSelectMultiple, | |
) | |
from django.utils.http import urlencode | |
from urllib.parse import unquote, quote_plus, parse_qsl | |
class AutocompleteUrl(object): |
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
#!/bin/sh | |
SAVEIFS=$IFS | |
DANGLING=`docker images -f dangling=true | grep -v REPOSITORY | tr -s ' ' | cut -d' ' -f3` | |
IFS=$'\n' | |
DANGLING=($DANGLING) | |
IFS=$SAVEIFS | |
if [ ${#DANGLING[@]} -gt 0 ]; then | |
echo ${#DANGLING[@]} "dangling images to delete:" | |
echo ${DANGLING[*]} |
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
Library not loaded: @loader_path/libSDL2-2.0.0.dylib | |
brew install sdl2 --universal | |
dyld: Symbol not found: __pcre_utf8_table1_size | |
Referenced from: /Users/user/Library/Application Support/Steam/steamapps/common/rocketleague/RocketLeague.app/Contents/MacOS/TAGame | |
Expected in: /usr/lib/libpcre.0.dylib | |
in /Users/user/Library/Application Support/Steam/steamapps/common/rocketleague/RocketLeague.app/Contents/MacOS/TAGame | |
Abort trap: 6 |
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
SELECT * | |
FROM | |
( | |
SELECT | |
schemaname | |
,objectname | |
,usename | |
,HAS_TABLE_PRIVILEGE(usrs.usename, fullobj, ‘select’) AS sel | |
,HAS_TABLE_PRIVILEGE(usrs.usename, fullobj, ‘insert’) AS ins | |
,HAS_TABLE_PRIVILEGE(usrs.usename, fullobj, ‘update’) AS upd |
NewerOlder