Skip to content

Instantly share code, notes, and snippets.

View MitchTurner's full-sized avatar
💭
㊙️

Mitchell Turner MitchTurner

💭
㊙️
View GitHub Profile
@MitchTurner
MitchTurner / Playground.hs
Created January 27, 2021 07:35
Plutus Playground Smart Contract
import qualified Data.Text as T
import Language.Plutus.Contract hiding (when)
import Language.PlutusTx.Prelude
import Playground.Contract
-- | A 'Contract' that logs a message.
hello :: Contract BlockchainActions T.Text ()
hello = logInfo @String "Hello, world"
endpoints :: Contract BlockchainActions T.Text ()
@MitchTurner
MitchTurner / Playground.hs
Created January 27, 2021 07:32
Plutus Playground Smart Contract
module MyFirstPlutusSmartContract where
import qualified Language.PlutusTx as PlutusTx
import Ledger)
0462038dd99a10fcf6788c06668037ecb2bfb09159e9955bd5a30a205c665ec4938aa9b57593ffb68cac9cf79ff67a103fc933cbb53eb8adf6612bac1dbdde1d28;bdevitis

Keybase proof

I hereby claim:

  • I am mitchturner on github.
  • I am mtchtrnr (https://keybase.io/mtchtrnr) on keybase.
  • I have a public key ASA9kvw7Gsl5UZfZZCYCapCiH6OKbJrPfzQhCYIyFmg18wo

To claim this, I am signing this object:

def key_INPUT(self):
for event in pygame.event.get():
if event.type == QUIT:
pygame.quit()
sys.exit()
self.que = filter(lambda a: a != 'fill', self.que)
if event.type == KEYDOWN:
if event.key == K_LEFT:
def toggle_menu(self):
eSC_change = self.ESC != self.ESC_last
if self.ESC and eSC_change and not self.menu_on:
self.menu_on = True
elif self.ESC and eSC_change and self.menu_on:
self.menu_on = False
self.ESC_last = self.ESC