import UIKit
class ViewController: UIViewController, UITextFieldDelegate {
@IBOutlet weak var textField: UITextField!
This file contains 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 is ported from Rangy's selection save and restore module and has no dependencies. | |
* Copyright 2019, Tim Down | |
* Licensed under the MIT license. | |
* | |
* Documentation: https://github.com/timdown/rangy/wiki/Selection-Save-Restore-Module | |
* Use "rangeSelectionSaveRestore" instead of "rangy" | |
*/ | |
var rangeSelectionSaveRestore = (function() { | |
var markerTextChar = "\ufeff"; |
This file contains 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
on: | |
push: | |
branches: | |
- master | |
name: Build and Release Apps | |
jobs: | |
build: | |
name: Build Apps | |
runs-on: macos-latest |
This file contains 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
[ | |
{ | |
"id": "aaron-bond.better-comments", | |
"name": "better-comments", | |
"publisher": "aaron-bond", | |
"version": "2.1.0" | |
}, | |
{ | |
"id": "AbhijoyBasak.nestjs-files", | |
"name": "nestjs-files", |
This file contains 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
bold=$(tput bold) | |
normal=$(tput sgr0) | |
files='*.mp4' | |
original_dir_size=$(du -sh | awk '{print $1}'); | |
original_dir_size_int=${original_dir_size:0:${#original_dir_size}-1} | |
for file in $files |
This file contains 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 "PINRemoteImageManager.h" | |
@interface RemoteImageManager : PINRemoteImageManager | |
+ (instancetype)sharedImageManager; | |
typedef void (^PINRemoteImageManagerImagePercentageProgressBlock)(float percent); | |
- (NSUUID *)downloadImageWithURL:(NSURL *)url | |
options:(PINRemoteImageManagerDownloadOptions)options |
This file contains 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
<script src="http://cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.1/processing-api.min.js"></script><html> | |
<!-- | |
Created using jsbin.com | |
Source can be edited via http://jsbin.com/pdfjs-helloworld-v2/8598/edit | |
--> | |
<body> | |
<canvas id="the-canvas" style="border:1px solid black"></canvas> | |
<input id='pdf' type='file'/> | |
<!-- Use latest PDF.js build from Github --> |
This file contains 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
// From: http://www.bdunagan.com/2009/11/28/iphone-tip-no-nshost/ | |
// MIT license | |
// Remember to add CFNetwork.framework to your project using Add=>Existing Frameworks. | |
#import "BDHost.h" | |
#import <CFNetwork/CFNetwork.h> | |
#import <netinet/in.h> | |
#import <netdb.h> | |
#import <ifaddrs.h> |
This file contains 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
// | |
// BaseTabBarController.h | |
// WeCareWealthManagement | |
// | |
// Created by Leo Cavalcante on 24/07/17. | |
// Copyright © 2017 Kiddo. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
NewerOlder