Return the Galnet news.
Base URL: https://cms.zaonce.net/en-GB/jsonapi/node/galnet_article
You can change the en-GB
in the URL to get Galnet in others languages (fr-FR
, pt-BR
...).
Return the Galnet news.
Base URL: https://cms.zaonce.net/en-GB/jsonapi/node/galnet_article
You can change the en-GB
in the URL to get Galnet in others languages (fr-FR
, pt-BR
...).
A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.
Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.
/*! | |
* Cropper v3.0.0-beta | |
* https://github.com/fengyuanchen/cropper | |
* | |
* Copyright (c) 2017 Fengyuan Chen | |
* Released under the MIT license | |
* | |
* Date: 2017-02-25T07:44:44.656Z | |
*/ |
[ | |
{ | |
"depth":1, | |
"nodes":8, | |
"fen":"r6r/1b2k1bq/8/8/7B/8/8/R3K2R b KQ - 3 2" | |
}, | |
{ | |
"depth":1, | |
"nodes":8, | |
"fen":"8/8/8/2k5/2pP4/8/B7/4K3 b - d3 0 3" |
from django.db import connection, models | |
class MyManager(Manager): | |
def raw_as_qs(self, raw_query, params=()): | |
"""Execute a raw query and return a QuerySet. The first column in the | |
result set must be the id field for the model. | |
:type raw_query: str | unicode | |
:type params: tuple[T] | dict[str | unicode, T] | |
:rtype: django.db.models.query.QuerySet | |
""" |
# -*- coding: utf-8 -*- | |
import Image | |
def resize_and_crop(img_path, modified_path, size, crop_type='top'): | |
""" | |
Resize and crop an image to fit the specified size. | |
args: | |
img_path: path for the image to resize. |