Skip to content

Instantly share code, notes, and snippets.

@alvintian
alvintian / gist:2be764a266ef9bc2ba78d8b02e67e697
Created September 1, 2020 21:50
a screen for The First Prototype
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="App1.MainPage" BackgroundColor="#82b051">
<StackLayout Margin="20,35,20,25" HorizontalOptions="Center" >
<Label Text="TLC" HorizontalTextAlignment="Center" TextColor="White" Padding="0,80,0,0" Font="Bold,60"/>
<Label Text="Customer Store" HorizontalTextAlignment="Center" TextColor="White" Font="Bold,20"/>
<Image Source="Xamarin" HeightRequest="100" WidthRequest="100" />
<Label Text="Enter the WebID of your TLC IBO" FontSize="20" TextColor="White" HorizontalTextAlignment="Center" Padding="30,10,30,10"/>
@alvintian
alvintian / pythonPONG
Created August 26, 2020 10:21
A Pong game made with python
import pygame
import random
pygame.init()
#Variables
sc_width = 800
sc_height = 600
ballx = 2
bally = 2
clock = pygame.time.Clock()
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>