Skip to content

Instantly share code, notes, and snippets.

View devgeeks's full-sized avatar

tommy-carlos williams devgeeks

View GitHub Profile
@devgeeks
devgeeks / GoodURIDesign.md
Created August 23, 2012 07:41
Good URI design

Stolen from Bob Aman's excellent answer on Stack Overflow

General principles for good URI design:

  • Don't use query parameters to alter state
  • Don't use mixed-case paths if you can help it; lowercase is best
  • Don't use implementation-specific extensions in your URIs (.php, .py, .pl, etc.)
  • Don't fall into RPC with your URIs
  • Do limit your URI space as much as possible
  • Do keep path segments short
@devgeeks
devgeeks / gist:2934680
Created June 15, 2012 04:35
Attempted Harp.ui panel toggling button
$('.btn.closex').bind('tap',function(){
panel.close();
$(this).removeClass('closex').addClass('openx');
});
$('.btn.openx').bind('tap',function(e){
panel.open({direction:'right'});
$(this).removeClass('openx').addClass('closex');
});
@devgeeks
devgeeks / ReadItLaterFull.m
Created April 12, 2012 04:32
change to ReadItLaterFull.m
// ADD THIS...
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
// JUST ABOVE THIS... (NEAR THE BOTTOM OF THE FILE)
-(void)viewDidDisappear:(BOOL)animated {
[super viewDidDisappear:animated];
@devgeeks
devgeeks / LICENSE
Created August 8, 2011 01:21
Eventarc javascript inline event list
Eventarc PHP API Library License Agreement
This license is a legal agreement between you and Eventarc for the use of the Eventarc PHP API Library (the "Software"). By obtaining the Software you agree to comply with the terms and conditions of this license.
Copyright (c) 2009-2011 Eventarc
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.