Let say you have migrations like this
project/apps/accounts/migrations
├── 0001_initial.py
├── 0002_historicalprofile_historicaluser.py
├── 0003_auto_20190807_1559.py
├── 0004_auto_20190811_1013.py
Let say you have migrations like this
project/apps/accounts/migrations
├── 0001_initial.py
├── 0002_historicalprofile_historicaluser.py
├── 0003_auto_20190807_1559.py
├── 0004_auto_20190811_1013.py
/* | |
* Handling Errors using async/await | |
* Has to be used inside an async function | |
*/ | |
try { | |
const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
// Success 🎉 | |
console.log(response); | |
} catch (error) { | |
// Error 😨 |
First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.
Find the Discord channel in which you would like to send commits and other updates
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
--!/usr/bin/env lua | |
local delpattern = KEYS[1] | |
local count = 0 | |
local valuelist = redis.call('keys', delpattern) | |
if valuelist then | |
for i = 1, #valuelist do | |
redis.call('del', valuelist[i]) | |
count = count + 1 | |
end |
# USAGE EXAMPLE: | |
# https://github.com/nemesisdesign/nodeshot/blob/09d5307fa38861339a660ba96b2c79f9c19ec92a/nodeshot/core/layers/models/__init__.py | |
from django.core.urlresolvers import NoReverseMatch | |
from rest_framework import serializers | |
from rest_framework.fields import Field | |
from rest_framework.reverse import reverse | |
function Callable() { | |
var self = function Callable() | |
this.__call__.apply(this, arguments); | |
self.__proto__ = Callable.prototype; | |
return self; | |
} | |
Callable.prototype = { | |
constructor: Callable, | |
__proto__: Function.prototype, | |
__call__: function __call__() { |