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
public class Bar { | |
public string Baz; | |
public Bar(int x) | |
{ | |
// Do something here | |
} | |
} | |
public class Foo : Bar { |
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
// Alter the webview contentsize after loading page | |
- (void)webViewDidFinishLoad:(UIWebView *)webView { | |
// Set the width and height of the content size, in your case the width bigger than the screen width | |
[webView.scrollView setContentSize:CGSizeMake(myWidth, myHeight)]; | |
} |
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
for (NSString* channel in _objects) { | |
FayeClient* client = [[FayeClient alloc] initWithURLString:@"ws://localhost:8001/faye" | |
channel:[NSString stringWithFormat:@"/%@", channel]]; | |
client.delegate = self; | |
[client connectToServer]; | |
} |
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
if (jQuery.browser.mobile == true) { | |
window.location = 'http://Hier-de-URL-die-je-wilt-hebben'; | |
} |
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
{"objects": | |
[{ | |
"created_at": "2011-12-20T13:22:34", | |
"title": "Test", | |
"sender": "/api/v1/users/1/", | |
"dates": ["/api/v1/dates/4/"], | |
} | |
] | |
} |
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
jsonify_paginated(url=url_for('events_program_list', slug=slug), | |
page=page, | |
extra_context={'filter': request.args.get('filter', None) }, | |
shows=show_list) |
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
<div id="fotoslider"> | |
<!-- slide --> | |
<div class="slide"> | |
<img src="" /> | |
</div> | |
<!-- slide --> | |
<div class="slide"> | |
<img src="" /> | |
</div> |
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.subtitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(108, 32, self.view.width - 120, 0)]; | |
self.subtitleLabel.font = [UIFont fontWithName:@"Helvetica" size: 12.0]; | |
self.subtitleLabel.textColor = RGBCOLOR(136, 136, 136); | |
self.subtitleLabel.backgroundColor = [UIColor clearColor]; | |
[self.view addSubview:self.subtitleLabel]; |
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
<form action="" method="post"> | |
<!-- column 1 --> | |
<div class="column"> | |
<!-- veld 1 --> | |
<p> | |
<label></label> | |
<input /> | |
</p> | |
<p> | |
<label></label> |