Reduce otherwise verbose reuse of an object for many subjects. (From TimBL http://lists.w3.org/Archives/Public/public-rdf-comments/2012Jul/0007.html)
Examples:
foaf:Person is a of :Alice, :Bob, :Charlie, :David, :Elisa .
Reduce otherwise verbose reuse of an object for many subjects. (From TimBL http://lists.w3.org/Archives/Public/public-rdf-comments/2012Jul/0007.html)
Examples:
foaf:Person is a of :Alice, :Bob, :Charlie, :David, :Elisa .
Usage | |
====== | |
.. wiki-table:: | |
:header-rows: 1 | |
:widths: 2 3 5 | |
|id|header1|header2| | |
|1|hello|world| | |
|2|foo|:strong:`bar`| |
import requests, re, json, types, traceback | |
class HypothesisAnnotation: | |
def __init__(self, row): | |
"""Encapsulate relevant parts of one row of a Hypothesis API search.""" | |
self.tags = [] | |
if row.has_key('tags') and row['tags'] is not None: | |
self.tags = row['tags'] |
#!/usr/bin/env python3 | |
from v4l2 import * | |
import fcntl | |
import mmap | |
import select | |
import time | |
vd = open('/dev/video0', 'rb+', buffering=0) |
import time | |
import numpy as np | |
from numpy.fft import fft2, ifft2 | |
from matplotlib import pyplot, animation | |
def fft_convolve2d(board, kernal): | |
board_ft = fft2(board) | |
kernal_ft = fft2(kernal) | |
height, width = board_ft.shape |
import cv2 | |
import sys | |
class Camera(object): | |
def __init__(self, index=0): | |
self.cap = cv2.VideoCapture(index) | |
self.openni = index in (cv2.CAP_OPENNI, cv2.CAP_OPENNI2) | |
self.fps = 0 |
from shodan import Shodan | |
api = Shodan('API-KEY') | |
results = api.search('isp:"ThreatMetrix Inc." port:443 Bad Request') | |
for banner in results['matches']: | |
# Only care about services that use SSL | |
if 'ssl' in banner: | |
print(banner['ssl']['cert']['subject']['CN']) |
import { createContext, useRef, useState } from 'react' | |
export const PyodideContext = createContext() | |
export default function PyodideProvider({ children }) { | |
const pyodide = useRef(null) | |
const hasLoadPyodideBeenCalled = useRef(false) | |
const [isPyodideLoading, setIsPyodideLoading] = useState(true) | |
return ( |