Skip to content

Instantly share code, notes, and snippets.

View Fortyseven's full-sized avatar
🥃
🟥🟧🟨⬜

Toby D Fortyseven

🥃
🟥🟧🟨⬜
View GitHub Profile
REM 79/02/28. 19.27.34.
REM PROGRAM DND1
00010 LET J4=1
00030 PRINT
00100 BASE 0
00110 LET X = 0
00120 LET J = 0
00130 LET K = 0
00140 X1 = 0
@Fortyseven
Fortyseven / gist:11200844
Created April 23, 2014 02:20
Code that got me through Level 11 and 12 of Untrusted
var player = map.getPlayer();
if (this.init === undefined) {
this.player_last_x = player.getX();
this.player_last_y = player.getY();
this.init = true;
return;
}
if (player.getX() > this.player_last_x) me.move('right');
if (player.getX() < this.player_last_x) me.move('left');
//Copyright (c) 2014 Tilman Schmidt (@KeyMaster_)
//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
@porglezomp
porglezomp / README.md
Last active August 29, 2015 14:05
Do parametric animation in Unity3d, inspired by UIView animation in iOS

How to use this

Installation

  1. Copy the PAnim.cs class into your Unity3d project
  2. You're done!

Animating Objects

Keybase proof

I hereby claim:

  • I am fortyseven on github.
  • I am fortyseven (https://keybase.io/fortyseven) on keybase.
  • I have a public key whose fingerprint is 0554 CDD3 A7B8 CCCC 5656 33D8 9589 7D10 C443 ED52

To claim this, I am signing this object:

FLICKS TO WATCH
---------------
* = possibly seen a long time ago, but completely forgotten about
10 Cloverfield Lane
Adaptation
Americathon
Amélie
Blues Brothers
Brain Candy - Kids in the Hall *
THE LOW-DOWN ON LOADALL:
EXCERPTS FROM THE BOOK
THE HYPER-SPACE NAVIGATOR'S GUIDE
by
Terrance E. Hodgins
copyright (C) 1990 by Terrance E. Hodgins,
All rights reserved.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Folder\shell\Unity5]
@=""
"Icon"="%ProgramFiles%\\Unity\\Editor\\Unity.exe"
"MUIVerb"="Open as Unity Project"
[HKEY_CLASSES_ROOT\Folder\shell\Unity5\Command]
@="cmd /c start /D\"c:\\Program Files\\Unity\\Editor\\\" Unity.exe -projectPath \"%1\""
import React, { useState, useEffect } from 'react'
import styled from 'styled-components'
import { useCanvas } from 'utils/hooks'
import debounce from 'lodash/debounce'
export default function Glow() {
const [ref, setRef] = useState<HTMLCanvasElement | null>(null)
const [boxes, setBoxes] = useState<Box[]>([])
const [ctx, width, height] = useCanvas(ref)
const moving = useMouseMoving()
@paniq
paniq / pico8.txt
Last active March 20, 2022 21:11
PICO-8 hacks & secrets
Screen resolutions
------------------
PICO-8 supports different undocumented videomodes that can be activated at runtime,
using poke(0x5F2C, X) where X is one of the following mode numbers:
0: 128x128, 0 pages
1: 64x128, 1 page
2: 128x64, 1 page
3: 64x64, 3 pages