Skip to content

Instantly share code, notes, and snippets.

View joshuapowell's full-sized avatar
☄️
https://info.cern.ch/hypertext/

J.I. Powell joshuapowell

☄️
https://info.cern.ch/hypertext/
View GitHub Profile
@mattupstate
mattupstate / app.py
Created March 15, 2012 19:08
Flask application configuration using an environment variable and YAML
os
from flask_extended import Flask
app = Flask(__name__)
app.config.from_yaml(os.join(app.root_path, 'config.yml'))
@ebinnion
ebinnion / .m file
Created January 4, 2012 16:08
Add polygon overlay to mapkit iOS
- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id<MKOverlay>)overlay
{
if ([overlay isKindOfClass:[MKPolygon class]])
{
MKPolygonView* aView = [[MKPolygonView alloc]initWithPolygon:(MKPolygon*)overlay];
aView.fillColor = [[UIColor cyanColor] colorWithAlphaComponent:0.2];
aView.strokeColor = [[UIColor blueColor] colorWithAlphaComponent:0.7];
aView.lineWidth = 3;
return aView;
}
@joshuapowell
joshuapowell / MYMODULE.info
Created November 25, 2011 23:08
Drupal 7 & Views 3 capable dynamically loading views
name = "MY MODULE"
description = "Custom Views specific to a website"
package = "MY WEBSITE"
core = 7.x
dependencies[] = views