- list images
docker image ls
- create image from a docker file
docker image build -t imgname:imgtag .
- run a container
docker container run --interactive --tty --name containername imgname:imgtag
# Install python 3.8 | |
``` | |
./configure --enable-shared --enable-optimizations | |
make | |
sudo make install | |
``` | |
#install mod_wsgi 4.8 | |
``` | |
./configure --with-python=/usr/local/bin/python3.8 |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Inkscape - macOs - Absolute Path Wrapper | |
======================================== | |
On *macOs*, *Inkscape* requires absolute paths to work:: | |
https://answers.launchpad.net/inkscape/+question/280575 |
from flask import Flask, jsonify, request | |
import random | |
from flask_graphql import GraphQLView | |
from database import init_db | |
from schema import schema | |
app = Flask(__name__) | |
default_query = """ | |
{ | |
allColumns { |
int main(){ | |
string property_uri = "x:x"; | |
string HDT_FNAME = "sample.hdt"; | |
HDT *hdt = HDTManager::mapHDT(HDT_FNAME.c_str()); | |
cout << "\nnumber of entities for property <"<< property_uri << ">: "<< hdt->search("", property_uri.c_str(), "")->estimatedNumResults(); | |
auto itt = hdt->search("", property_uri.c_str(), ""); | |
long i; | |
while(itt->hasNext()){ | |
i++; | |
itt->next(); |
import QtQuick 2.0 | |
Column{ | |
property string username | |
property string img | |
width: parent.width | |
Rectangle{ | |
color: "white" | |
height: 60 |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDisplayName</key> | |
<string>${PRODUCT_NAME}</string> | |
<key>CFBundleExecutable</key> | |
<string>Myapp</string> | |
<key>CFBundleGetInfoString</key> | |
<string>Created by Qt/QMake</string> |
import rdflib | |
def get_ontology_data(ontology_file): | |
g = rdflib.Graph() | |
g.parse(ontology_file) | |
for sub, pred, obj in g: | |
add_as_tuple(sub, pred, obj) | |
print_col_tables() | |
return "" |