Skip to content

Instantly share code, notes, and snippets.

// overall, this version (v2) moves toward the approach of constructing prompts within the artStyle list, such that you can e.g. place user inputs within a prompt multiple times, and have prompt construction completely depend on the art style
// NOTE: the notes below are old/outdated. lots of other changes that aren't listed here.
// changes (note that some of the non-breaking ones were back-ported to v1):
// - [breaking] all userInputs are now under a single `input` global variable - so [input.description] instead of polluting global namespace with [description]
// - [breaking] no more _optionName for <select> inputs - use [input.artStyle.getName] instead of [artStyle_optionName]
// - [breaking] no more 'append'/'prepend' options - not necessary now that we move to constructing prompts within the artStyle list
// - `remember=true` for user input specs, which remembers values even after page reload
// - multiple chat channels
@sarvar
sarvar / responsive.php
Created January 16, 2017 17:43
Force bootstrap responsive image to be square
<div class="col-sm-6">
<a href="#" class="thumbnail">
<div class="caption">
title<br/>3 x bekeken
</div>
<div class="image">
<img src="" class="img img-responsive full-width" />
</div>
</a>
</div>
@joneskoo
joneskoo / table_to_sqlite3.py
Last active May 12, 2023 03:20
Parse HTML table to CSV
#!/usr/bin/env python3.4
import sys
import sqlite3
from html.parser import HTMLParser
class TableParser(HTMLParser):
def __init__(self):