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
#! /usr/bin/env python3 | |
""" | |
List all Firefox tabs with title and URL | |
Supported input: json or jsonlz4 recovery files | |
Default output: title (URL) | |
Output format can be specified as argument | |
""" |
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
def tclass(*argnames, then_do=None): | |
if len(argnames) == 1 and isinstance(argnames[0], dict): | |
argnames = argnames[0] | |
def decorator(cls): | |
def inner_init(self, *args, **kwargs): | |
for argname, arg in zip(argnames, args): | |
self.__setattr__(argname, arg) | |
for argname in list(argnames)[len(args):]: | |
self.__setattr__(argname, argnames[argname]) |
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
DCPU-16N Specification | |
Copyrights 1985 Mojang, Meisaka Yukara | |
Version 0.14 influenced by DCPU-16 (1.7) | |
=================================== SUMMARY ==================================== | |
* 16 bit CISC CPU design | |
* DCPU-16 compatibility functions | |
* 8/16 bit switchable memory word size (1 octet per address or 2 octets per address) |
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
# A xterm-256color based TERMINFO that adds the escape sequences for italic. | |
# | |
# Install: | |
# | |
# tic xterm-256color-italic.terminfo | |
# | |
# Usage: | |
# | |
# export TERM=xterm-256color-italic | |
# |
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
DCPU-16 Specification | |
Copyright 1985 Mojang | |
Version 1.7 | |
=== SUMMARY ==================================================================== | |
* 16 bit words | |
* 0x10000 words of ram |
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
Based on feedback from ChemicalR I'm cross posting all the things I've bookmarked in reguards to planet rendering here in the code forums. | |
[url=http://www.gamasutra.com/view/feature/3098/a_realtime_procedural_universe_.php]Sean O'Neil[/url]'s 4 2001 part series is considered a foundation for realistic large scale (planets on up) rendering. Most of these methods are now obsolete and replaced with faster methods and gpu shaders. His [url=http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter16.html]atmospheric scattering[/url]method is still used often due to its relative simplicity, but it only produces earth atmospheres. | |
[url=http://acko.net/blog/making-worlds-1-of-spheres-and-cubes/]Steven Wittens[/url] 2009 multipart series is frequently linked to as I've searched for best practices in creating planets using modern methods. It is based on a cube with mesh texture and normalizes the vertex points into a sphere. The advantage to this method is that conventional terrain LOD methods, often used in first |
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
In irc there was talk about FTL and the assorted gameplay issues with each method. Then I started thinking about other design and story issues trillek is having. Then I started thinking about my space game I haven't touched in a while. | |
A few years ago I saw a video similar to this one http://vimeo.com/40234826 and I was really struck by saturn's moons. Saturn has over 70 moons. That is a lot of surface area to explore and with assorted orbits around each moon, and saturn itself, that is a lot of gamespace. I also saw this picture http://misc.oranse.net/misc/wallpaper/earth.jpg taken from low Earth orbit and how amazing our planet looked from low orbit. I started designing a game with the setting of just our solar system that takes place during humanity's expansion into our solar system. | |
What if we used that setting, or a similar one, instead? What if trillek takes place in one solar system? | |
Using our solar system as a model: There are 4 terrestial planets. 4 gas giants. At least 4 dwarf planets and a numbe |
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
accumulate = lambda t: lambda f: lambda *a, **k: t(f(*a, **k)) | |
@accumulate(list) | |
def foreach(iterable, func): | |
for i, x in enumerate(iterable): | |
yield func(x, i) | |
mylist = list(chr(n) for n in range(65, 75)) | |
foreach(mylist, lambda x, i: print('{} => {}'.format(i, x))) |
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
#!/usr/bin/env python3 | |
from os import system | |
from sys import argv | |
# Example: | |
# youtube-terminal.py foo bar baz | |
# calls youtube-dl 'ytsearch:foo bar baz' --max-downloads 1 -o - | cvlc - --no-video | |
call = 'youtube-dl "ytsearch:{}" --max-downloads 1 -o - | cvlc - --no-video'.format | |
system(call(' '.join(argv[1:]))) |
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
prepositions = """ | |
aboard, about, above, across, after, against, along, amid, among, anti, | |
around, as, at, before, behind, below, beneath, beside, besides, between, | |
beyond, but, by, concerning, considering, despite, down, during, except, | |
excepting, excluding, following, for, from, in, inside, into, like, minus, | |
near, of, off, on, onto, opposite, outside, over, past, per, plus, | |
regarding, round, save, since, than, through, to, toward, towards, under, | |
underneath, unlike, until, up, upon, versus, via, with, within, without | |
""".split(', ') |
NewerOlder