In this guide we will only focus on using the prebuilt images from Docker Hub.
Prerequisites: You have Git, Docker and Docker compose installed.
Clone Mastodon's repository.
In this guide we will only focus on using the prebuilt images from Docker Hub.
Prerequisites: You have Git, Docker and Docker compose installed.
Clone Mastodon's repository.
captainVersion: 4 | |
services: | |
$$cap_appname: | |
environment: | |
database__client: 'mysql' | |
database__connection__host: $$cap_mariadb_host | |
database__connection__database: $$cap_ghost_database_name | |
database__connection__password: $$cap_ghost_database_password | |
database__connection__user: $$cap_ghost_database_user | |
database__connection__port: '3306' |
wget https://cli-assets.heroku.com/branches/stable/heroku-linux-arm.tar.gz | |
mkdir -p /usr/local/lib /usr/local/bin | |
sudo tar -xvzf heroku-linux-arm.tar.gz -C /usr/local/lib | |
sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku |
# -*- coding: utf-8 -*- | |
""" | |
Upload folder to Google Drive | |
""" | |
# Enable Python3 compatibility | |
from __future__ import (unicode_literals, absolute_import, print_function, | |
division) |
I hereby claim:
To claim this, I am signing this object:
class ProductAdmin(admin.ModelAdmin): | |
list_display = ('name','thumb') | |
def thumb(self, obj): | |
return render_to_string('thumb.html',{ | |
'image': obj.image | |
}) | |
thumb.allow_tags = True |
# R is a scripting language | |
# Arithmetic Operators | |
5+5 | |
# 10 | |
# Arithmetic Operators | |
# Addition: + | |
# Subtraction: - |
BOARD_SIZE = 4 | |
def under_attack(col, queens): | |
left = right = col | |
for r, c in reversed(queens): | |
left, right = left-1, right+1 | |
if c in (left, col, right): | |
return True | |
return False |
#!/usr/bin/env python3 | |
'''This code should actually work with any ASCII maze that contains spaces for open paths, and a S, and E for | |
start and ending points. characters representing borders are redundant. | |
Create a text file containing the maze and type the name of the file as input | |
while running this code. | |
''' | |
''' | |
Main method in which the program starts |
/* Java program for solution of M Coloring problem | |
using backtracking */ | |
public class mColoringProblem { | |
final int V = 4; | |
int color[]; | |
/* A utility function to check if the current | |
color assignment is safe for vertex v */ | |
boolean isSafe(int v, int graph[][], int color[], | |
int c) |