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
#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 |
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
#---------------------------------------------------------------------- | |
# 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. | |
# |
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
#---------------------------------------------------------------------- | |
# 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. | |
# |
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
#---------------------------------------------------------------------- | |
# 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. | |
# |
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
// | |
// Tip Calculator Example | |
// | |
// Calculates a tip and total given a bill amount | |
// | |
open System; | |
open Xamarin.Forms; | |
let clr1 = Color.FromRgb (150, 200, 190) |
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
#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=""" |
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
// | |
// 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 |
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
// | |
// Plotting Example | |
// | |
// Demonstrates the use of OxyPlot to plot functions. | |
// | |
open System | |
open System.Linq | |
open OxyPlot |
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
// | |
// 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 | |
// |
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
// | |
// 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. | |
// |
NewerOlder