Skip to content

Instantly share code, notes, and snippets.

View GuyCarver's full-sized avatar

Guy Carver GuyCarver

  • Bethesda Game Studios
  • Maryland
View GitHub Profile
@GuyCarver
GuyCarver / rssfeeds.py
Created November 30, 2012 03:02
show scrolling lists of rss feeds.
#https://gist.github.com/GuyCarver/4173534
from scene import *
import feedparser
from time import sleep
import random
import Queue
from threading import Thread, Event
fontsize = 25
@GuyCarver
GuyCarver / monkey.py
Created November 20, 2012 05:07
Pythonista Frogger style game
#----------------------------------------------------------------------
# Copyright (c) 2012, Guy Carver
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
@GuyCarver
GuyCarver / mazecraze.py
Last active July 12, 2019 19:02
Updated to new ui for options screen.
#----------------------------------------------------------------------
# Copyright (c) 2012, Guy Carver
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
@GuyCarver
GuyCarver / ripoff.py
Created November 20, 2012 03:29
Pythonista version of vector graphics ripoff arcade game.
#----------------------------------------------------------------------
# Copyright (c) 2012, Guy Carver
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
@GuyCarver
GuyCarver / tip.fsx
Last active July 4, 2018 09:45
F# version of tipcalculator.cs example for Continuous app
//
// Tip Calculator Example
//
// Calculates a tip and total given a bill amount
//
open System;
open Xamarin.Forms;
let clr1 = Color.FromRgb (150, 200, 190)
@GuyCarver
GuyCarver / image2base64.py
Created November 22, 2012 20:23
Pythonista image2base64
#covert an image in the clipboard to a 57x57 rgb icon and store base64 version of it into the clipboard.
#if an image is not in the clipboard the base64 string 'b64str' will be loaded and displayed.
#after running the 1st time replace the contents of b64str with the clipboard.
from PIL import Image
import clipboard
from StringIO import *
import base64
b64str="""
@GuyCarver
GuyCarver / quick_text.fsx
Created September 23, 2016 03:21
F# version of QuickText.cs example for Continuous app
//
// Quick Text Example
//
// Enables you to text quickly by defining standard messages.
//
// 1. Add the ability to delete messages
// 2. Add the most recent message at the top
//
open System
@GuyCarver
GuyCarver / plotting.fsx
Created September 23, 2016 03:17
F# version of plotting.cs example for Continuous app
//
// Plotting Example
//
// Demonstrates the use of OxyPlot to plot functions.
//
open System
open System.Linq
open OxyPlot
@GuyCarver
GuyCarver / map.fsx
Last active September 23, 2016 07:41
F# version of map.cs example for Continuous app
//
// Map Example for Continuous
//
// Displays a point on a map
//
// Experiments:
// 1. Change the coordinate to your home
// 2. Add more pins
// 3. Change the map type to a satellite view
//
@GuyCarver
GuyCarver / pong.fsx
Created September 23, 2016 03:32
F# version of pong.cs example for Continuous app. Only partially implemented due to some bugs in the app.
//
// Pong Example
//
// Implements a basic version of the classic game for two players.
// Swipe up and down on the left to move the left paddle, and
// swipe on the right side for the right paddle.
//
// Tip: If the editor freezes while you type,
// turn off "Auto Run" in the settings.
//