Skip to content

Instantly share code, notes, and snippets.

View AllieCarver's full-sized avatar

Allie Carver AllieCarver

View GitHub Profile
CGRect viewRect = CGRectMake(0, 0, 100, 100);
UIColor * greyColor = [UIColor colorWithRed:230.0/255.0 green:230.0/255.0 blue:230.0/255.0 alpha:1.0];
[greyColor setFill];
UIRectFill( viewRect );
UIViewController *rootViewController = [[UIApplication sharedApplication] keyWindow].rootViewController;
UIView* myView = [[UIView alloc] initWithFrame:viewRect];
myView.backgroundColor = greyColor;
//
// main.m
// nienie
/*
credit to Gabriele Greco from
https://forums.libsdl.org/viewtopic.php?t=8906&sid=b72546db8669ba672be8253304974314
This is slightly modifified version of his ad banner class from his project
source
https://sourceforge.net/p/etw/code/HEAD/tree/trunk/etw/Banner.m#l4
*/
@AllieCarver
AllieCarver / main.py
Last active February 13, 2017 02:15 — forked from quintopia/main.py
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.scatter import Scatter
from kivy.core.window import Window
from kivy.uix.floatlayout import FloatLayout
from kivy.lang import Builder
Window.clearcolor = (1, 1, 1, 1)
Builder.load_string('''
<TextSquare>: