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
| { | |
| "data": { | |
| "character_name": "egg", | |
| "stage": "egg", | |
| "speeches": [ | |
| { | |
| "text": "おはようございます!", | |
| "expressions": [ | |
| { | |
| "start": 0, |
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
| """ | |
| Automatic migration of subscriptions to another | |
| YouTube account with Python and Selenium. | |
| Tested with: | |
| - selenium 3.0 | |
| - firefox 49.0 | |
| - python 3.5 | |
| 1. Install selenium from pypi: |
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
| import 'dart:collection'; | |
| class EmojiService { | |
| // 100%ではない。ほぼ一般な絵文字をmatchできる | |
| // 使わない | |
| // bool isOnlyOneEmoji_Old(String text) { | |
| // RegExp regExp = RegExp( | |
| // r"^(\uD83D(?:[\uDC76\uDC66\uDC67](?:\uD83C[\uDFFB-\uDFFF])?|\uDC68(?:(?:\uD83C(?:[\uDFFB-\uDFFF](?:\u200D(?:\u2695\uFE0F?|\uD83C[\uDF93\uDFEB\uDF3E\uDF73\uDFED\uDFA4\uDFA8]|\u2696\uFE0F?|\uD83D[\uDD27\uDCBC\uDD2C\uDCBB\uDE80\uDE92]|\u2708\uFE0F?|\uD83E[\uDDB0-\uDDB3]))?)|\u200D(?:\u2695\uFE0F?|\uD83C[\uDF93\uDFEB\uDF3E\uDF73\uDFED\uDFA4\uDFA8]|\u2696\uFE0F?|\uD83D(?:\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uDC68\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|[\uDD27\uDCBC\uDD2C\uDCBB\uDE80\uDE92])|\u2708\uFE0F?|\uD83E[\uDDB0-\uDDB3]|\u2764(?:\uFE0F\u200D\uD83D(?:\uDC8B\u200D\uD83D\uDC68|\uDC68)|\u200D\uD83D(?:\uDC8B\u200D\uD83D\uDC68|\uDC68)))))?|\uDC69(?:(?:\uD83C(?:[\uDFFB-\uDFFF](?:\u20 |
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
| import Foundation | |
| let dict: [[String]] = [["seagames", "đại hội thể thao đông nam á"], | |
| ["có bao nhiêu", "số lượng"], | |
| ["nước", "quốc gia"], | |
| ["tham dự", "tham gia", "có mặt", "thi đấu"]] | |
| func printResult(mask: [Int]) { | |
| print(mask) | |
| var resultString = "" |
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
| Brew error on macOS High Sierra: Check you have permission to write to /usr/local | |
| You just have to uninstall and reinstall Brew on your Mac: | |
| ``` | |
| brew bundle dump | |
| ``` | |
| And then: |
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
| import Foundation | |
| protocol Initializable { | |
| static func initWith(json: String) -> Any | |
| } | |
| class TestModel : Initializable { | |
| var json : String | |
| static func initWith(json: String) -> Any { |
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
| - 過去30日以内に: từ ngày hôm nay nhìn về trong vòng 30 ngày ở quá khứ | |
| - 過去31日以前に: từ ngày hôm nay nhìn về ngày thứ 31 trở đi ở quá khứ | |
| - 将来30日以内に: từ ngày hôm nay nhìn tới trong vòng 30 ngày ở tương lai | |
| - 将来31日以降に: từ ngày hôm nay nhìn tới ngày thứ 31 trở đi ở tương lai |
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
| ルール: | |
| 否定形 > 肯定形 | |
| (~ませんか) (~ますか) | |
| 相手に決定を委ねる > 自分が決める | |
| (~てくれますか) (~てください) | |
| はっきり言わない > はっきり言う | |
| (~たいんですが) (~ませんか) |
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
| extension UIView { | |
| func getSpecifiedTypeInSubviews<T: UIView>() -> [T] { | |
| var subviews = [T]() | |
| self.subviews.forEach { subview in | |
| subviews += subview.getSpecifiedTypeInSubviews() as [T] | |
| if let subview = subview as? T { | |
| subviews.append(subview) | |
| } | |
| } | |
| return subviews |
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
| extension String { | |
| public var containsEmoji: Bool { | |
| let invalid = self.filter { char in | |
| if let code = String(char).utf16.first { | |
| if 0xd800 <= code && code <= 0xdbff { | |
| return true | |
| } | |
| } | |
| return false |
NewerOlder