Probably what you're looking for
[a]Alternate (alternate version of the game, usually trying a different output method)[p]Pirate
| /* | |
| Reddit DailyProgrammer Challenge #180 -- Tamagotchi Emulator | |
| By Aerospark12 (aka Luke) | |
| I may have gone a little bit overboard with this one, but I've got fond memories of tamagotchi from when | |
| I was but a wee laddie, I've always wanted to make something like this, and I really enjoy graphics and animation | |
| The design of this is partially inspirte by how I understand "low level" ICs to work, as an homage to the real tamagotchi |
| import socket | |
| class Netcat: | |
| """ Python 'netcat like' module """ | |
| def __init__(self, ip, port): | |
| self.buff = "" | |
| self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
| #!/usr/bin/env python | |
| # -*- coding: utf-8; mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- | |
| # vim: fileencoding=utf-8 tabstop=4 expandtab shiftwidth=4 | |
| """ | |
| THIS CODE IS OUTDATED! Please use this instead: | |
| https://pypi.org/project/pyuac/ | |
| https://github.com/Preston-Landers/pyuac |
| #!/bin/bash | |
| # mapwacom script | |
| MAPWACOM=$(basename $0) | |
| EXIT_CODE_BAD_DEVICE=82 | |
| EXIT_CODE_NO_SUCH_DEVICE=80 | |
| EXIT_CODE_NO_SUCH_SCREEN=81 | |
| EXIT_CODE_MISSING_DEPS=83 | |
| EXIT_CODE_USAGE=64 |
| #!/usr/bin/env python | |
| # -*- encoding: UTF8 -*- | |
| """ read out S.M.A.R.T. values out of the database and plot them using matplotlib | |
| <http://matplotlib.sourceforge.net/examples/pylab_examples/anscombe.html> | |
| """ | |
| from pylab import * | |
| from os import geteuid |
| #!/usr/bin/python | |
| import hashlib | |
| import os | |
| import sys | |
| if len(sys.argv) < 2: | |
| sys.exit('Usage: %s filename' % sys.argv[0]) | |
| if not os.path.exists(sys.argv[1]): |
| # Copyright 2018 Simon Davy | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in |
| -- enable dblink support | |
| CREATE EXTENSION dblink; | |
| -- create the connection | |
| SELECT dblink_connect('myconn', 'dbname=tracking-service'); | |
| -- then use the connection | |
| SELECT "oauthId" | |
| FROM "56_profile" local | |
| INNER JOIN dblink('myconn','SELECT DISTINCT user_id FROM "event"') |
| # =============== # | |
| # Unity generated # | |
| # =============== # | |
| [Tt]emp/ | |
| [Oo]bj/ | |
| [Bb]uild | |
| /[Bb]uilds/ | |
| /[Ll]ibrary/ | |
| sysinfo.txt | |
| *.stackdump |