Hey!
This was a fantastic piece of code, get a look.
It's the real deal if you want to send one file to multiple sequential subdirectories:
printf "bomba_000%02i " $(seq 1 10) | xargs -n 1 cp puzzle.xml
Got this amazing solution from here: http://unix.stackexchange.com/questions/49011/copying-a-single-file-to-multiple-directories-using-cp
I'll probably update this to be a little bit more specific on generic names, but for now it's awesome.
Cheers.
Showing posts with label FAST. Show all posts
Showing posts with label FAST. Show all posts
Friday, December 5, 2014
Friday, December 2, 2011
XCode/Objective-C: Xcode 4.2 and MainWindow.xib
Bros,
After a long search on the Oracle (Google) I found it.
The on thing that really pissed me on XCode 4.2 (AKA last version), what that "View Based Application" does not exist anymore and i was like "WTFH am I going to do now?!".
So today, i found the solution!
Who found it out?
Joroen Trappers - click here and do directly to his solution/post
From whom did i get the first post?
Chris's Laboratory - click and go the post
If you guys need anything, just get in contact.
Live long and prosper, peace.
After a long search on the Oracle (Google) I found it.
The on thing that really pissed me on XCode 4.2 (AKA last version), what that "View Based Application" does not exist anymore and i was like "WTFH am I going to do now?!".
So today, i found the solution!
Who found it out?
Joroen Trappers - click here and do directly to his solution/post
From whom did i get the first post?
Chris's Laboratory - click and go the post
If you guys need anything, just get in contact.
Live long and prosper, peace.
Labels:
.XIB,
APPLE,
FAST,
HELP,
MAINWINDOW,
MAINWINDOW.XIB,
OBJECTIVE-C,
QUICK,
SDK,
XCODE,
XCODE 4.2
Friday, November 25, 2011
Objective-C/Cocoa: Star Rating Class
Hi breathers,
How's it all going?
It's been a time since i posted, so here's some nice stuff.
Know all those games that rate you after the match(e.g. Angry Birds) with the star system-thing, so i made on very simple so you just need to copy and paste on your project.
Download: StarRate Class (WARNING: Very Huge Dowload - 3K)
Probably you'll would like to add other sizes of banners, so just feel free to use the class as you want.
Oh, yeah! One last thing. I know this is a stupid comment, but remember you're not going to use it directly on the "-(void)viewDidLoad". Normally you'll use it when the match is ended and on the "level" boxes to display the last rate the player had on that match/level.
After you import the code to your project you have to do this:
@end
How's it all going?
It's been a time since i posted, so here's some nice stuff.
Know all those games that rate you after the match(e.g. Angry Birds) with the star system-thing, so i made on very simple so you just need to copy and paste on your project.
Download: StarRate Class (WARNING: Very Huge Dowload - 3K)
Probably you'll would like to add other sizes of banners, so just feel free to use the class as you want.
Oh, yeah! One last thing. I know this is a stupid comment, but remember you're not going to use it directly on the "-(void)viewDidLoad". Normally you'll use it when the match is ended and on the "level" boxes to display the last rate the player had on that match/level.
After you import the code to your project you have to do this:
#import <UIKit/UIKit.h>
#import "StarRate.h"
@interface StarTestViewController : UIViewController{
StarRate *_stars;
}
@end
#import "StarTestViewController.h"
@implementation StarTestViewController
-(void)createStars{
_stars = [[StarRate alloc]init];
//THIS setBackgroundColor YOU CAN ADD TO THE CLASS I UPLOADED FOR YOU
//ON THE -(void)startUp METHOD
[_stars setBackgroundColor:[UIColor clearColor]];
[_stars setupInterfaceTheWayIWantWithType:STARBANNER_250X50 andRate:2];
[_stars setCenter:CGPointMake(160, 240)];
[self.view addSubview:_stars];
}
-(void)viewDidLoad{
[self createStars];
[self.view setBackgroundColor:[UIColor whiteColor]];
[super viewDidLoad];
}
(...)
@end
As you can see, i didn't use InterfaceBuilder, i'm kind of on strike with him, so fell free to use InterfaceBuilder if you want, you just need to remember how to inherit a normal UIView to StareRate.
If you need help, just go to the Contact Section and let me know.
Live long and prosper.
Labels:
COCOA,
COCOATOUCH,
FAST,
HELP,
MY CODE,
OBJECTIVE-C,
XCODE
Thursday, October 6, 2011
Cocos2D: Press&Hold button
Hey, sports!
Today the time is really really short, so I made an example and uploaded it.
It's no a virus or anything, it's a project that can help you when you need to make action like this:
1)Press button;
2)Wish that it would increase/decrease a "number label";
3)Release button;
4)Action stop right after releasing
here's the link:
Project: Button Press&Hold
Hasta la vista, dudes.
Today the time is really really short, so I made an example and uploaded it.
It's no a virus or anything, it's a project that can help you when you need to make action like this:
1)Press button;
2)Wish that it would increase/decrease a "number label";
3)Release button;
4)Action stop right after releasing
here's the link:
Project: Button Press&Hold
Hasta la vista, dudes.
Saturday, September 24, 2011
Pixelmator: Round Corners
Quick tip for those who do not use the Adobe Suit:
If you need to create round corners on a object, here it is:
Do not forget to "LIKE" this video.
If you need to create round corners on a object, here it is:
Do not forget to "LIKE" this video.
Subscribe to:
Posts (Atom)
