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)viewWillDisappear:(BOOL)animated { | |
| [super viewWillDisappear:animated]; | |
| if (dispatch_queue_create != NULL) { | |
| dispatch_release(timeline_queue); | |
| dispatch_release(image_queue); | |
| } | |
| } |
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
| - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
| static NSString *CellIdentifier = @"SampleTable"; | |
| if (!tweetMessages) { | |
| UITableViewCell *cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease]; | |
| cell.textLabel.text = @"loading..."; | |
| cell.textLabel.textColor = [UIColor grayColor]; | |
| return cell; | |
| } | |
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
| // | |
| // Base | |
| // | |
| // this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
| Titanium.UI.setBackgroundColor('#000'); | |
| // create tab group | |
| var tabGroup = Titanium.UI.createTabGroup(); |
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
| rvm package install readline | |
| rvm remove 1.9.2 | |
| rvm install 1.9.2 --with-readline-dir=$rvm_path/usr |
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
| // ==UserScript== | |
| // @title Scratch Plus | |
| // @description Add Twitter button and Facebook Like button to Scratch project pages. | |
| // @namespace http://tsukurusha.com | |
| // @include http://scratch.mit.edu/projects/* | |
| // ==/UserScript== | |
| var pactions = document.getElementById('pactions'); | |
| var buttons = document.createElement('div'); | |
| var twitter_button = document.createElement('span'); |
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
| // ==UserScript== | |
| // @title Chofu Library Auto Login | |
| // @description Fill out login info for chofu library reservation system | |
| // @namespace http://blog.champierre.com | |
| // @include https://www.lib.city.chofu.tokyo.jp/cgi-bin/entry | |
| // ==/UserScript== | |
| document.getElementsByName('UID')[0].value = '1234567-8' | |
| document.getElementsByName('PASS')[0].value = '1234' | |
| document.getElementsByName('CONTACT')[0].childNodes[0].selected = true |
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
| 121 function wxr_cdata( $str ) { | |
| 122 if ( seems_utf8( $str ) == false ) | |
| 123 $str = utf8_encode( $str ); | |
| 124 | |
| 125 // $str = ent2ncr(esc_html($str)); | |
| 126 $str = str_replace(']]>', ']]]]><![CDATA[>', $str); // <= Add This | |
| 127 $str = "<![CDATA[$str" . ( ( substr( $str, -1 ) == ']' ) ? ' ' : '' ) . ']]>'; |
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
| 367 <guid isPermaLink="false"><?php esc_url( the_guid() ); ?></guid> | |
| 368 <description></description> | |
| 369 <content:encoded><?php echo wxr_cdata( apply_filters( 'the_content_export', wpautop( $post->post_content ) ) ); ?></content:encoded> | |
| 370 <excerpt:encoded><?php echo wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) ); ?></excerpt:encoded> |
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
| // ==UserScript== | |
| // @title Library Auto Login | |
| // @description Fill out login info for the library reservation system | |
| // @namespace http://blog.champierre.com | |
| // @include https://anylibrary.url/clis/entry <== REPLACE THIS | |
| // ==/UserScript== | |
| document.getElementsByName('UID')[0].value = UID; <== REPLACE THIS | |
| document.getElementsByName('PASS')[0].value = PASS; <== REPLACE THIS | |
| document.getElementsByName('CONTACT')[0].childNodes[3].selected = true; |
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
| Is it possible to create your own WebView(not the one that DroidGap provides) and make PhoneGap work on it on Android? | |
| I have an existing Android project which has my own WebView. I want to extend that WebView so that PhoneGap can be used on it. | |
| What I want to do is similar to: | |
| Cleavage | |
| http://blogs.nitobi.com/jesse/2010/04/20/introducing-iphone-cleavage/ | |
| but on Android. |