Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
| import Foundation | |
| extension Character { | |
| var isEmoji: Bool { | |
| return unicodeScalars.allSatisfy { $0.properties.isEmoji } | |
| } | |
| } | |
| func recentlyUsedEmoji() -> [Character]? { | |
| #if os(iOS) |
Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
| !function() { | |
| var e = function(e) { | |
| var t = { | |
| exports: {} | |
| }; | |
| return e.call(t.exports, t, t.exports), | |
| t.exports | |
| }; | |
| e(function() { | |
| "use strict"; |
| extension UITabBarController { | |
| /** | |
| Show or hide the tab bar. | |
| - Parameter hidden: `true` if the bar should be hidden. | |
| - Parameter animated: `true` if the action should be animated. | |
| - Parameter transitionCoordinator: An optional `UIViewControllerTransitionCoordinator` to perform the animation | |
| along side with. For example during a push on a `UINavigationController`. | |
| */ |
| var CryptoJS = require('crypto-js') | |
| var request = require('request-promise') | |
| /* | |
| * npm install crypto-js request-promise request | |
| * node wx_t1t_hack.js | |
| */ | |
| // export function testEncription(msg, fullKey) { | |
| // var fullKey = fullKey.slice(0, 16) |
| { | |
| "emojis": [ | |
| {"emoji": "👩👩👧👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👩👩👧👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👩👩👦👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "👨👩👧👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z |
| import Foundation | |
| // Inspired by https://gist.github.com/mbuchetics/c9bc6c22033014aa0c550d3b4324411a | |
| struct JSONCodingKeys: CodingKey { | |
| var stringValue: String | |
| init?(stringValue: String) { | |
| self.stringValue = stringValue | |
| } |
| // NSAttributedString: Fit image to container | |
| // Find answer in here: | |
| // https://stackoverflow.com/questions/28920795/nsattributedstring-fit-image-to-container/29060169#29060169 | |
| ## Code Below | Swift 3 | |
| let data = htmlString.data(using: .unicode) | |
| let text = try NSMutableAttributedString(data: data!, options: [NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType], documentAttributes: nil) | |
| text.enumerateAttribute(NSAttachmentAttributeName, in: NSMakeRange(0, text.length), options: .init(rawValue: 0), using: { (value, range, stop) in | |
| if let attachement = value as? NSTextAttachment { |
| // | |
| // UIImage+Resize.swift | |
| // | |
| // Created by Marcos Griselli on 6/9/17. | |
| // Copyright © 2017 Marcos Griselli. All rights reserved. | |
| // | |
| import Foundation | |
| import UIKit |
| // | |
| // MyWKWebVC.Swift | |
| // Example | |
| // | |
| // Created by Fahied on 04/01/2017. | |
| // | |
| import Foundation | |
| import UIKit | |
| import WebKit |