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
#!/bin/python3 | |
"""Heist Simulator.""" | |
import random | |
from enum import Enum | |
import argparse | |
import copy | |
""" |
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
# Maintainer: Francisco Martinez <zomernifalt at gmail dot com> | |
pkgname=makerbot-desktop | |
pkgver=3.9.1 | |
_openmeshver=3.2_3.2 | |
pkgrel=2 | |
pkgdesc="A complete, free 3D printing solution for discovering, managing, and sharing your 3D | |
prints." | |
arch=('x86_64') | |
url="https://www.makerbot.com/desktop" | |
license=('GPL') |
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
class A(object): | |
items = {"one":1, | |
"two":2} | |
def __init__(self): | |
self.item = 0 | |
for key in A.items: | |
f = lambda self,k=key:(self.__setattr__("item", self.items[k]),self)[1] | |
f.__name__=key | |
setattr(A,key,f) |