Skip to content

Instantly share code, notes, and snippets.

import pygame
from random import randint
pygame.init()
screen = pygame.display.set_mode((500, 500))
done = False
is_blue = True
x = 30
y = 30
import pygame
from random import randint
pygame.init()
screen = pygame.display.set_mode((500, 500))
done = False
is_blue = True
x = 30
y = 30
import pygame
from random import randint
pygame.init()
screen = pygame.display.set_mode((500, 500))
done = False
is_blue = True
x = 30
y = 30
System: Host: razer-buntu Kernel: 4.15.0-20-generic x86_64 bits: 64 Desktop: Gnome 3.28.1
Distro: Ubuntu 18.04 LTS
Machine: Device: laptop System: Razer product: Blade v: 5.04 serial: N/A
Mobo: Razer model: Blade v: Late 2016 serial: N/A UEFI: Razer v: 02.00 date: 12/06/2016
Battery BAT0: charge: 67.0 Wh 97.8% condition: 68.6/70.2 Wh (98%)
CPU: Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB
clock speeds: max: 3500 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz 4: 800 MHz 5: 801 MHz 6: 799 MHz
7: 800 MHz 8: 800 MHz
Graphics: Card-1: Intel HD Graphics 530
Card-2: NVIDIA GP106M [GeForce GTX 1060 Mobile]
@jgoodleaf
jgoodleaf / postmkvirtualenv.sh
Created October 17, 2012 22:00 — forked from jaysw/postmkvirtualenv.sh
python virtualenvwrapper and SublimeCodeIntel plugin for Sublime Text integration
#!/usr/bin/env bash
# file: ~/.virtualenvs/postmkvirtualenv
# This hook is run after a new virtualenv is activated.
# setup python interpretor and sitepackages
# for Sublime Text's SublimeCodeIntel plugin.
# codeintel looks in the root of any folder opened via `subl foldername`
# for foldername/.codeintel/config
# it also looks in ~/.codeintel/config
@jgoodleaf
jgoodleaf / crossdomainxhr.py
Created October 15, 2012 23:39 — forked from kdonaldson/django-crossdomainxhr-middleware.py
Middlware that implements CORS for django.
import re
from django.utils.text import compress_string
from django.utils.cache import patch_vary_headers
from django import http
'''
EXAMPLE USAGE:
Put this file in a directory called, eg, 'middleware,' inside your django