This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Imports: | |
#import <CoreLocation/CoreLocation.h> | |
// Delegate: | |
@interface CoolBroViewController : UIViewController<CLLocationManagerDelegate> | |
// Start the request | |
if ([CLLocationManager locationServicesEnabled]) { | |
locationManager = [[CLLocationManager alloc] init]; | |
locationManager.delegate = self; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// THIS? | |
@implementation ExampleViewController { | |
// Private Properties | |
UIImage *theImage; | |
} | |
// Method definitions | |
@end | |
// OR THIS? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = "", |