This file contains hidden or 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
| diff --git a/src/conio/CMakeLists.txt b/src/conio/CMakeLists.txt | |
| index 274f4ef1a..c0336ab54 100644 | |
| --- a/src/conio/CMakeLists.txt | |
| +++ b/src/conio/CMakeLists.txt | |
| @@ -10,6 +10,7 @@ set(WITHOUT_X11 OFF CACHE BOOL "Disable X11 video support") | |
| set(WITHOUT_XRANDR OFF CACHE BOOL "Disable X11 video support") | |
| set(WITHOUT_XRENDER OFF CACHE BOOL "Disable X11 video support") | |
| set(WITHOUT_XINERAMA OFF CACHE BOOL "Disable X11 video support") | |
| +set(WITHOUT_DECRQCRA ON CACHE BOOL "Disable DECRQCRA rectangular area checksum (screen scraping prevention)") | |
This file contains hidden or 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
| """Test for GitHub issue #103: 64-character command length bug.""" | |
| import asyncio | |
| import pytest | |
| import telnetlib3 | |
| from telnetlib3.tests.accessories import unused_tcp_port, bind_host # noqa: F401 | |
| from telnetlib3.telopt import IAC, DO, WONT, TTYPE |
This file contains hidden or 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
| 110 dim t$(16),f$(16):for i=1 to 16:t$(i)="":f$(i)="":next | |
| 130 t$(1)="back2pet (demo!)":t$(2)="frobots4 (demo!)" | |
| 150 t$(3)="miner! (1980)":t$(4)="pbros (2023)" | |
| 170 t$(5)="tut-tut (2021)":t$(6)="3d maze ..(2021)" | |
| 190 t$(7)="escape .. (2024)":t$(8)="defender (2020)" | |
| 220 t$(9)="trekwar (2022)":t$(10)="pssp (2023)" | |
| 240 t$(11)="truchet (2025)":t$(12)="kenatron (2025)" | |
| 260 t$(13)="microchess(1978)":t$(14)="vortex (1982)" | |
| 280 t$(15)="space! (1979)":t$(16)="galaga (1982)" | |
| 330 ms$="welcome to the 2025 detroit retro gaming show! " |
This file contains hidden or 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
| #!/usr/bin/env python | |
| #-u | |
| # Python 2.4+ required | |
| # by contact@jeffquast.com | |
| # This utility creates a multiplexing i/o pipe between a master process | |
| # and multiple child processes. The master process reads in one input file | |
| # and delegates equal chunks of those files into each child process. | |
| # | |
| # The child process script may be a binary program, too. so long as it |
This file contains hidden or 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
| import blessed | |
| import os, glob | |
| import math | |
| # TODO: | |
| # - fast in-memory string compression of output | |
| # - run at ~some fps, index into frames by rtt /2 use terminal query | |
| import asyncio, telnetlib3 | |
| class MyTelnetServer(telnetlib3.TelnetServer): | |
| def on_naws(self, rows, cols): |
This file contains hidden or 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
| #### note: I wouldn't recommend using the python library of libchafa, at least, at the time of authoriship, | |
| ### it segfaulted every ~100 calls. I would suggest to use subprocess.Popen family of calls to the 'chafa' | |
| ### CLI utility, instead. | |
| # TODO: calibration of FONT_RATIO: | |
| import os | |
| # ".. make a perfect circle ..." | |
| import blessed | |
| from chafa import * |
This file contains hidden or 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
| public class ChessPiece { | |
| String kind; | |
| Position pos; | |
| ChessPiece next; | |
| ChessPiece(String kind, int xpos, int ypos) | |
| { | |
| this.kind = kind; | |
| this.pos = new Position(xpos, ypos); | |
| next = null; |
This file contains hidden or 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
| # inspired by https://www.theverge.com/2020/5/18/21262316/doordash-pizza-profits-venture-capital-the-margins-ranjan-roy | |
| import math | |
| starting_cash = 16 | |
| cost_to_order = 16 | |
| doordash_pays = 24 | |
| cost_of_pizza = 4 | |
| cash = starting_cash |
This file contains hidden or 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
| function rfile { | |
| base='' | |
| [ -n "${1}" ] && base="$1"/ | |
| ls -1rt ${1:-} | tac \ | |
| | while read f | |
| do [ -f "${base}$f" ] && echo ${base}$f && break | |
| done | |
| } |
This file contains hidden or 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
| import os | |
| import time | |
| import slack | |
| import random | |
| client = slack.WebClient(token=os.environ['SLACK_BOT_TOKEN']) | |
| #response = client.chat_postMessage( | |
| # channel=' #adam-test-channel', | |
| # text="Hello world!") |
NewerOlder