Skip to content

Instantly share code, notes, and snippets.

View meyer9's full-sized avatar
🏠
Working from home

Julian Meyer meyer9

🏠
Working from home
View GitHub Profile
@meyer9
meyer9 / converttoppm.py
Last active August 9, 2017 20:22 — forked from anonymous/converttoppm.py
Modifications to Scheme art to run faster
import struct
with open('test.ppm', 'wb') as ppm_file:
ppm_file.write("P6\n".encode('ascii'))
with open('test.txt', 'r') as out:
width = int(out.readline())
height = int(out.readline())
ppm_file.write((str(width) + ' ' + str(height) + '\n').encode('ascii'))
ppm_file.write('255\n'.encode('ascii'))
@meyer9
meyer9 / garply_demo.ipynb
Created July 17, 2017 16:14
Garply Demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@meyer9
meyer9 / RPSChallenge.java
Created February 28, 2017 04:40
Solution to RPS Challenge
package com.jmeyer2k.rps;
import java.lang.reflect.Field;
/**
* Your code MUST INCLUDE a move method with the following signature. To insure that, you must implement
* the Player interface
*
*/
public class Julianinator implements Player
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDdB1HdJHwBn4gT3avpDm/0nYmCjYzNZTJMexmmRmULbn+kjZQwq/5vD3DXSI4wIbMa89dnSFSPUj/yLNIT/1C7sLxGQ2HK8t5NB4aWEKOqIuJvDn11dnEPhNLV8uy+U/4O8+5I7nHOx/PIe2r2/F26Ri8HFHdqPPUvB4EvMiTO3qPqoVMbj8UQeBZxdnS2BnNJ01UAkOmT96eglso3LhXQhLiDTn/487Qg6g/Fo/LrJFxakfaV4VXJ+BfrVTzUBWzp6Ss6D+ucAhf7pWjUc6fNG+ghN/pTLnt+IpRRhyNFU5OyiPUYTcMaevFZYZVZFsI9NFXZY5NtmB3p3f2jW+OXWOdr7/7gb3j+SxwgZ/R7d2SMdX0J5Bb46HN1YjYWHW9QpBPEYAeyxm9YCmP/mFn12nIas5CZZiShByVicwDcFbkyKuM7A894zhKMs7xsvjP9zd6j9g3LDV83V2b1e+e24xt/86sIzZwMOiqwKKjyjNf8wC+wRrOtpe7ZG3wK0GE0U+ZlQ4AsvDlDDPnB6j1UVf9O8P0yAZ7+kL+2d+JbT6APw6/DS6YGFDshmTo4TxXIWVGEGyDDSzI9V3xLl5gTpqtw5BYxTuybccspKz6He/43a0X5FhF7TQaKJ3eX/16pnRy0n0B3878EdNg/bzP7uIj7CjGeh4mogCtaxULmZQ== [email protected]
@meyer9
meyer9 / start.sh
Created January 8, 2015 13:09
Minecraft Start Script
java -jar -Xms512m -Xmx1024m minecraft_server.jar
@meyer9
meyer9 / skeleton.py
Created July 6, 2014 17:43
PyGame Skeleton
import pygame
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode((640, 480))
running = 1
while running:
for event in pygame.event.get():

Keybase proof

I hereby claim:

  • I am jmeyer2k on github.
  • I am jmeyer2k (https://keybase.io/jmeyer2k) on keybase.
  • I have a public key whose fingerprint is 7773 80CB 3E6F D861 6F78 53C6 D1CB 2774 BEFB 2FAF

To claim this, I am signing this object:

//
// PDAppDelegate.m
// StatusBar
//
// Created by Julian Meyer on 9/23/12.
// Copyright (c) 2012 Julian Meyer. All rights reserved.
//
#import "PDAppDelegate.h"
@meyer9
meyer9 / PDAppDelegate.h
Created September 25, 2012 02:42
PDAppDelegate.h
//
// PDAppDelegate.h
// StatusBar
//
// Created by Julian Meyer on 9/23/12.
// Copyright (c) 2012 Julian Meyer. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@meyer9
meyer9 / player.py
Created August 13, 2012 15:07
Player.py revision 2
import pygame
class Player(pygame.sprite.Sprite):
def __init__(self, img_filename, init_position, speed=5):
self.speed=speed
self.vspeed=0
self.onGround=False
self.position=init_position
self.image = pygame.image.load(img_filename)
def update(self):
gravity=0.3