This file contains 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
index=winevents* sourcetype="WinEventLog:System" | |
| dedup ComputerName, host | |
| rex field=ComputerName "(?<RealHostName>[\w\d\-]+)\..+" | |
| eval RealHostName=lower(RealHostName) | eval ReportedHostName=lower(host) | |
| where RealHostName!=ReportedHostName | |
| table RealHostName, ReportedHostName |
This file contains 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
import pygame | |
pygame.init() | |
screen = pygame.display.set_mode((800,600)) | |
if __name__ == "__main__": | |
while True: | |
pygame.display.flip() |
This file contains 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
import pyglet | |
screen = pyglet.window.Window(800,600) | |
if __name__ == "__main__": | |
pyglet.app.run() |
This file contains 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
import pygame | |
pygame.init() | |
screen = pygame.display.set_mode((800,600)) | |
if __name__ == "__main__": | |
while True: | |
screen.fill((0,0,0)) | |
pygame.display.flip() |
This file contains 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
import pyglet | |
from pyglet.window import key | |
screen = pyglet.window.Window(800,600) | |
@screen.event | |
def on_key_press(symbol, modifiers): | |
if symbol == key.A: | |
print 'You pressed A' |
This file contains 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
import pyglet | |
screen = pyglet.window.Window(800,600) | |
@screen.event | |
def on_draw(): | |
screen.clear() | |
if __name__ == "__main__": | |
pyglet.app.run() |
This file contains 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
import pygame | |
pygame.init() | |
screen = pygame.display.set_mode((800,600)) | |
clock = pygame.time.Clock() | |
def update(): | |
#update objects here | |
if __name__ == "__main__": | |
while True: |
This file contains 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
import pyglet | |
screen = pyglet.window.Window(800,600) | |
def update(dt): | |
#update objects here | |
if __name__ == "__main__": | |
pyglet.clock.schedule_interval(update, 1/120.0) | |
pyglet.app.run() |
This file contains 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
import pygame, sys | |
from pygame.locals import * | |
running = True | |
pygame.init() | |
screen = pygame.display.set_mode((800,600)) | |
clock = pygame.time.Clock() | |
def handleEvents(): | |
global running |
This file contains 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
import pygame, sys, os | |
running = True | |
pygame.init() | |
screen = pygame.display.set_mode((800,600)) | |
clock = pygame.time.Clock() | |
#calculate current path + location of player image. Image must be on same level as this file | |
mypath = os.path.dirname( os.path.realpath( __file__) ) | |
p_path = os.path.join(mypath, 'player.png') |
OlderNewer