Machine Learning for the Masses: A Group Discussion and Demonstration of Python-Powered AI Challenging our Collective Understanding of Beauty and Art
- Machine Learning
- Art
- Previous Examples
<div class="sidebar"> | |
<div class="sidebar-item" data-item-id="item1">Item 1</div> | |
<div class="sidebar-item" data-item-id="item2">Item 2</div> | |
<div class="sidebar-item" data-item-id="item3">Item 3</div> | |
<div class="sidebar-item" data-item-id="item4">Item 4</div> | |
<!-- Add more items as needed --> | |
</div> | |
<div class="content"> | |
<!-- Sentences will be populated here --> | |
</div> |
In Host by David Foster Wallace, a number of footnotes are used, with many having footnotes within footnotes.
In the online publication, these are coloured, and can be opened within the page. This gives context without having to scroll back and forth on both the desktop and mobile presentation medium.
Martha Spaulding wrote about how this was accomplished in a separate article.
Implement a css style (let's try to avoid JS) which would replicate this and ensure the abstraction of the author's side is a markdown-style footnote[^fnote]
I hereby claim:
To claim this, I am signing this object:
import requests | |
import pprint | |
pp = pprint.PrettyPrinter(indent=2) | |
url = "https://pokeapi.co/api/v2/pokemon/ditto" | |
r = requests.get(url) | |
pp.pprint(r.json()) |
# Via https://docs.sqlalchemy.org/en/latest/orm/tutorial.html | |
class User(Base): | |
__tablename__ = 'users' | |
id = Column(Integer, primary_key=True) | |
name = Column(String) | |
fullname = Column(String) | |
password = Column(String) | |
def __repr__(self): | |
return "<User(name='%s', fullname='%s', password='%s')>" % ( |
def active_user_required(view_func): | |
@wraps(view_func) | |
def inner(request, *args, **kwargs): | |
if request.user.is_active: | |
return view_func(request, *args, **kwargs) | |
raise Http404() | |
return inner |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import os | |
import glob | |
import PIL | |
from PIL import Image, ImageFilter | |
#!/bin/bash | |
# This script allows you to chroot ("work on") | |
# the raspbian sd card as if it's the raspberry pi | |
# on your Ubuntu desktop/laptop | |
# just much faster and more convenient | |
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689 | |
# make sure you have issued |
class asobj(object): | |
""" | |
Convert a python dictionary to an object accessible as attributes. | |
Args: | |
d: a python dictionary | |
Returns: | |
object: a python object with keys as attributes | |
""" | |
def __init__(self, d): |