This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit ujff2; | |
{$mode objfpc}{$H+} | |
interface | |
uses | |
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, | |
ExtCtrls, Menus, Buttons, StdCtrls, IniFiles; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Play a simple game of pong in a window. | |
Player 0 controls: (W, S) Player 1 controls: (O, L). Quit: (Q) | |
The ball bounces differently if you move while hitting it. | |
This also includes a slight factor of randomness. | |
Requires: pyglet, 10x10 image in directory: "white_square.png" | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WHAT? | |
# this is a modified version of tst's generate bot for | |
# text2quote (i.e. text on a fancy background) generation. | |
# it is stripped in that the imgur/reddit references are | |
# removed and it is called in the same way as my own text2quote | |
# module (so it is interchangable). | |
# UNTESTED AND HACKY, USE AT YOUR OWN RISK. | |
import os | |
import textwrap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
USAGE: | |
You need xvfb, python(2), praw and CutyCapt (see below). Simply run this as | |
a normal python script: `python local_reddit.py` | |
CUSTOMIZATION: | |
* change number of screencaps in main() (10 by deafault) | |
* change queried subreddits in main() | |
(query multiple reddits: "askreddit+writingprompts") | |
* get_top() submissions from day/week instead of hot ones (get_hot()) | |
TIME: |
NewerOlder