Skip to content

Instantly share code, notes, and snippets.

View NachoMan's full-sized avatar

Alex Nachbaur NachoMan

View GitHub Profile
@NachoMan
NachoMan / MLViewControllerCollectionViewCell.h
Created February 26, 2014 04:11
MLViewControllerCollectionViewCell.h
@interface MLViewControllerCollectionViewCell : UICollectionViewCell
@property (nonatomic, strong, readonly) UIViewController *viewController;
- (void)setViewController:(UIViewController *)viewController parentViewController:(UIViewController*)parentViewController;
@end
@NachoMan
NachoMan / MLViewControllerCollectionViewCell.m
Created February 26, 2014 04:12
MLViewControllerCollectionViewCell.m
#import "MLViewControllerCollectionViewCell.h"
@implementation MLViewControllerCollectionViewCell
- (void)setViewController:(UIViewController *)viewController parentViewController:(UIViewController*)parentViewController {
if (_viewController != viewController) {
if (_viewController) {
[_viewController removeFromParentViewController];
[_viewController.view removeFromSuperview];
[_viewController didMoveToParentViewController:nil];
<html><head><title>Apache Tomcat/6.0.18 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.io.FileNotFoundException: /app/mobclix-download/files/mike_decafn
(function() {
function preventBehavior(e) {
e.preventDefault();
window.scrollTo(0, 0);
};
document.__defineGetter__("preventScroll", function() {
return document._preventScroll;
});
document.__defineSetter__("preventScroll", function(preventScroll) {
document._preventScroll = preventScroll;
#!/bin/sh
function failed()
{
echo "Failed: $@" >&2
exit 1
}
set -ex
export OUTPUT=$WORKSPACE/output
SDKS="iphoneos3.0"
CONFIGURATIONS="Distribution Release"
ProvisionDistribution=<CERTIFICATE_UUID>.mobileprovision
ProvisionRelease=<CERTIFICATE_UUID>.mobileprovision
set -ex
export OUTPUT=$WORKSPACE/logs
rm -rf $OUTPUT
mkdir -p $OUTPUT
# Pull in prerequisite modules
PERL5LIB=`perl -e 'use Config; my $dir = $Config{sitelib}; $dir =~ s|/usr|$ENV{WORKSPACE}|; print $dir'`
export PERL5LIB
export PERL_TEST_HARNESS_DUMP_TAP=$OUTPUT
export TEST_VERBOSE=1
#!/bin/sh
USER=hudson
PASS=password
HUDSON_URL=http://$USER:$PASS@<my-build-server>:8080
JOB=$1
TOKEN=$2
CAUSE=$2
set -x
function deleteItem() { /* ... */ }
function doAction(buttonIndex, buttonLabel) {
if (buttonIndex == 0) {
/* Edit clicked */
} else if (buttonIndex == 1) {
/* Rename clicked */
}
}
dialog.openButtonDialog(
navigator.notification.alert(
"There was an error connecting to the Internet. Would you like to retry?.",
"No Internet connection",
"No",
"Yes",
{
onClose: function(buttonIndex) {
if (buttonIndex == 1)
retryConnection();
}