Skip to content

Instantly share code, notes, and snippets.

@KramKroc
KramKroc / env_arg_k8s.yaml
Last active June 9, 2020 07:00
Playing with k8s envs
apiVersion: v1
kind: Pod
metadata:
name: dapi-envars-resourcefieldref-2
spec:
containers:
- name: test-container-2
image: k8s.gcr.io/busybox:1.24
command: [ "sh", "-c"]
args:
@KramKroc
KramKroc / my_first_game_reset_costume.py
Created May 28, 2020 20:52
Restore the aliens appearance after they've been clicked
import random
WIDTH = 600
HEIGHT = 400
alien = Actor('alien', midbottom=(100,200))
def draw():
screen.fill((240, 6, 253))
alien.draw()
@KramKroc
KramKroc / my_first_game_sound_costume.py
Created May 27, 2020 21:52
Adding sound and costume
import random
WIDTH = 600
HEIGHT = 400
alien = Actor('alien', midbottom=(100,200))
def draw():
screen.fill((240, 6, 253))
alien.draw()
@KramKroc
KramKroc / my_first_game_mouse_down.py
Created May 27, 2020 21:17
Adding interaction based on the mouse button being pressed
import random
WIDTH = 600
HEIGHT = 400
alien = Actor('alien', midbottom=(100,200))
def draw():
screen.fill((240, 6, 253))
alien.draw()
@KramKroc
KramKroc / my_first_game_colour.py
Created May 27, 2020 20:53
Add colour to the background
import random
WIDTH = 600
HEIGHT = 400
alien = Actor('alien', midbottom=(100,200))
def draw():
screen.fill((240, 6, 253))
alien.draw()
@KramKroc
KramKroc / my_first_game_random.py
Created May 26, 2020 22:08
Random position when appearing from the left
import random
WIDTH = 600
HEIGHT = 400
alien = Actor('alien', midbottom=(100,200))
def draw():
screen.clear()
alien.draw()
@KramKroc
KramKroc / my_first_game_loop_actor.py
Created May 26, 2020 21:15
Looping our character in and out of screen
WIDTH = 400
HEIGHT = 600
alien = Actor('alien', midbottom=(100,200))
def draw():
screen.clear()
alien.draw()
def update():
@KramKroc
KramKroc / my_first_game_move_actor.py
Created May 26, 2020 20:55
Move our character to the right
WIDTH = 200
HEIGHT = 200
alien = Actor('alien', midbottom=(100,200))
def draw():
screen.clear()
alien.draw()
def update():
@KramKroc
KramKroc / my_first_game_add_actor.py
Created May 25, 2020 22:36
Showing how to add an actor to bottom of screen in Pygame Zero
WIDTH = 200
HEIGHT = 200
alien = Actor('alien', midbottom=(100,200))
def draw():
screen.clear()
alien.draw()
2018-08-30 15:43:01.589 DEBUG 40617 --- [qtp773865813-26] o.e.j.s.HttpChannel : REQUEST for //169.254.172.199:53063/.~~spring-boot!~/restart on HttpChannelOverHttp@10c28298{r=1,c=false,a=IDLE,uri=//169.254.172.199:53063/.~~spring-boot!~/restart,age=1}
POST //169.254.172.199:53063/.~~spring-boot!~/restart HTTP/1.1
Content-Type: application/octet-stream
X-AUTH-TOKEN: mysecret
User-Agent: Java/1.8.0_60
Host: 169.254.172.199:53063
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 2344