Skip to content

Instantly share code, notes, and snippets.

Tim timunrue

Block or report user

Report or block timunrue

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:54d12e372eb73bb430e511686eaee312
Invisible ball - https://www.reddit.com/r/RocketLeague/comments/5elsf9/idea_make_ball_invisibility_a_mutator/
@timunrue
timunrue / hidebar.m
Created Jun 10, 2016
Hide status bar programmatically with animation
View hidebar.m
-(void)hideStatusbar{
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
[UIView beginAnimations:@"Statusbar hide" context:nil];
[UIView setAnimationDuration:0.5];
[self.view setFrame:CGRectMake(0, 0, 320, 480)];
[UIView commitAnimations];
}
View uiview.m
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@”Title”
message:@”The body!”
delegate:nil
cancelButtonTitle:@”no!”
otherButtonTitles:nil];
[alert show];
[alert release];
@timunrue
timunrue / text2buttonAlert.m
Created Jun 10, 2016
Alert using UIAlertController (TextField and Two buttons)
View text2buttonAlert.m
// Show a text entry alert with two custom buttons.
- (void)showTextEntryAlert {
NSString *title = NSLocalizedString(@"Short_title", nil);
NSString *message = NSLocalizedString(@"Message", nil);
NSString *cancelButtonTitle = NSLocalizedString(@"Cancel", nil);
NSString *otherButtonTitle = NSLocalizedString(@"OK", nil);
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:UIAlertControllerStyleAlert];
@timunrue
timunrue / install_byobu_on_centos7.sh
Last active Nov 22, 2019
Install byobu to CentOS 7
View install_byobu_on_centos7.sh
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -ivh epel-release-7-5.noarch.rpm
sudo yum install byobu -y --enablerepo=epel-testing
You can’t perform that action at this time.