To pupils: all binaries can be downloaded http://pan.baidu.com/s/1ntCChyp
After overwriting, maybe need to run chmod +x /path/to/sublime_text. For linux default installation, need to add sudo.
For programmers:
To pupils: all binaries can be downloaded http://pan.baidu.com/s/1ntCChyp
After overwriting, maybe need to run chmod +x /path/to/sublime_text. For linux default installation, need to add sudo.
For programmers:
| // | |
| // TaskCell.swift | |
| // imuc | |
| // | |
| // Created by ctslin on 2015/8/13. | |
| // Copyright (c) 2015年 ctslin. All rights reserved. | |
| // | |
| import UIKit |
| // | |
| // IssuesTableViewController.swift | |
| // imuc | |
| // | |
| // Created by ctslin on 2015/8/4. | |
| // Copyright (c) 2015年 ctslin. All rights reserved. | |
| // | |
| import UIKit |
| extension NSAttributedString { | |
| func replaceHTMLTag(tag: String, withAttributes attributes: [String: AnyObject]) -> NSAttributedString { | |
| let openTag = "<\(tag)>" | |
| let closeTag = "</\(tag)>" | |
| let resultingText: NSMutableAttributedString = self.mutableCopy() as NSMutableAttributedString | |
| while true { | |
| let plainString = resultingText.string as NSString | |
| let openTagRange = plainString.rangeOfString(openTag) | |
| if openTagRange.length == 0 { |
| app.info_plist['UIStatusBarStyle'] = 'UIStatusBarStyleBlackTranslucent' | |
| app.info_plist["UIViewControllerBasedStatusBarAppearance"] = false |
| # A simple example of creating a UIView with a UICollectionView as a subview | |
| # in RubyMotion using Teacup for styling | |
| # | |
| # Your controller will need to set the stylesheet: stylesheet :example | |
| # and create this view like so: subview Example, :my_example_view | |
| class Example < UIView | |
| CELL_IDENTIFIER = 'example_cell' | |
| def initWithFrame(frame) |
| def viewDidLoad | |
| view.image = UIImage.imageNamed('welcome.png') | |
| view.userInteractionEnabled = true | |
| recognizer = UITapGestureRecognizer.alloc.initWithTarget(self, action:'nextScreen') | |
| view.addGestureRecognizer(recognizer) | |
| end | |
| def nextScreen | |
| animation = CATransition.animation |
| //Here's the same thing in Objective-C | |
| #import "WebView.h" | |
| @implementation WebView | |
| @synthesize webView = _webView; | |
| -(void) viewDidLoad | |
| { |
| //Here's the same thing in Objective-C | |
| #import "WebView.h" | |
| @implementation WebView | |
| @synthesize webView = _webView; | |
| -(void) viewDidLoad | |
| { |
| module BubbleWrap | |
| module Mail | |
| module_function | |
| # Base method to create your in-app mail | |
| # --------------------------------------- | |
| # EX | |
| # BW::Mail.compose { | |
| # delegate: self, # optional, will use root view controller by default |