Skip to content

Instantly share code, notes, and snippets.

View tbergeron's full-sized avatar
😠
Microsoft's acquisition of GitHub won't change a thing? Oh dear irony.

Tommy Bergeron tbergeron

😠
Microsoft's acquisition of GitHub won't change a thing? Oh dear irony.
View GitHub Profile
Route::group(array('prefix' => 'admin'), function()
{
// Home
Route::get( '', array('as' => 'home', 'uses' => 'HomeController@home'));
Route::get( 'login', array('as' => 'login', 'uses' => 'HomeController@getLogin'));
Route::post('login', array('as' => 'login', 'uses' => 'HomeController@postLogin'));
Route::get( 'logout', array('as' => 'logout', 'uses' => 'HomeController@logout'));
Route::get( 'dashboard', array('as' => 'dashboard', 'uses' => 'HomeController@dashboard'));
// Users
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
[button setTitle:@"Cancel" forState:UIControlStateNormal];
[button setFrame:CGRectMake(15, 15, 50, 50)];
[button setTintColor:[UIColor whiteColor]];
[button addTarget:self action:@selector(cancelButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
[[self view] addSubview:button];
...
- (void)cancelButtonPressed:(id)sender
Pod::Spec.new do |s|
s.name = "M13ProgressSuite"
s.version = "1.0.0"
s.summary = "A suite containing many tools to display progress information on iOS."
s.description = <<-DESC
M13ProgressSuite includes many diffrent of styles of progress views: bar, ring, pie, etc. It also includes a HUD overlay and a UINavigationController with progress bar built in.
DESC
s.homepage = "https://github.com/Marxon13/M13ProgressSuite"
// Imports:
#import <CoreLocation/CoreLocation.h>
// Delegate:
@interface CoolBroViewController : UIViewController<CLLocationManagerDelegate>
// Start the request
if ([CLLocationManager locationServicesEnabled]) {
locationManager = [[CLLocationManager alloc] init];
locationManager.delegate = self;
+ (void)applyTweaksToNavigationItem:(UINavigationItem *)item
{
API *api = [[API alloc] init];
UIBarButtonItem *button = [[UIBarButtonItem alloc] initWithTitle:@"Logout" style:UIBarButtonItemStylePlain target:api action:@selector(logoutButtonTouched:)];
[item setRightBarButtonItem: button];
// Logo
UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"vinpin_logo_white"]];
imageView.frame = CGRectMake(([item.titleView frame].size.width/2)-45, 8, 90, 24);
[item.titleView addSubview:imageView];
self.api = [[API alloc] init];
NSDictionary *navbarTitleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor], NSFontAttributeName: [UIFont fontWithName:@"HelveticaNeue-Light" size:24]};
[[UINavigationBar appearance] setTitleTextAttributes:navbarTitleTextAttributes];
[self.navigationBar setTranslucent:true];
[self.navigationBar setBarTintColor:[UIColor colorWithRed:211.0/255 green:48.0/255 blue:33.0/255 alpha:1.0]];
[self.navigationBar setTintColor:[UIColor whiteColor]];
USE Savico;
SELECT /** COLONNES ¿ ARCHIV…S **/
PO.PurchaseOrderId AS PONumber,
CONVERT(varchar, PO.OrderDate, 111) as OrderDate,
RTRIM(E.FirstName) + ' ' + RTRIM(E.LastName) AS BuyerName,
S.Name as SupplierName,
I.ItemNumber,
I.Name as ItemName,
I.Quantity as ItemQuantity,
style.normal.background = new Texture2D(120, 35);
style.hover.background = new Texture2D(120, 35);
style.normal.textColor = new Color(0f, 0f, 0f);
style.hover.textColor = new Color(0f, 0f, 128f);
// the following seems to (silently) fail
style.font = (Font)Resources.Load("BADABB__"); // badaboom font
style.fontSize = 34;
// THIS?
@implementation ExampleViewController {
// Private Properties
UIImage *theImage;
}
// Method definitions
@end
// OR THIS?
@tbergeron
tbergeron / gist:7271753
Created November 1, 2013 20:52
SnapEngage Ember.js conflict fix
var SnapABug = function () {
var d = ("https:" == document.location.protocol ? "https" : "http") + "://www.snapengage.com",
g = ("https:" == document.location.protocol ? "https" : "http") + "://commondatastorage.googleapis.com/code.snapengage.com",
p = !0,
k = !0,
r = !1,
c = "",
m = "",
z = "",
w = "",