I hereby claim:
- I am rizwan95 on github.
- I am rizwan95 (https://keybase.io/rizwan95) on keybase.
- I have a public key ASDrxdT50IurA20mz9DBOWBTd5o35r1FQdMzEc5hWVzGLAo
To claim this, I am signing this object:
{ | |
"af_NA":"Afrikaans (Namibia)", | |
"af_ZA":"Afrikaans (South Africa)", | |
"af":"Afrikaans", | |
"ak_GH":"Akan (Ghana)", | |
"ak":"Akan", | |
"sq_AL":"Albanian (Albania)", | |
"sq":"Albanian", | |
"am_ET":"Amharic (Ethiopia)", | |
"am":"Amharic", |
import SwiftUI | |
struct MultiLineTextView: View { | |
var attributedString: NSAttributedString | |
var body: some View { | |
GeometryReader { geometry in | |
MyTextView(width: geometry.size.width, attributedString: self.attributedString) | |
} | |
} | |
} |
struct AttachmentsModel : Hashable{ | |
let identifier = UUID() | |
let image: UIImage | |
func hash(into hasher: inout Hasher) { | |
hasher.combine(identifier) | |
} | |
static func getModel() -> [AttachmentsModel]{ | |
return [AttachmentsModel(image: UIImage(named: "simage1")!),AttachmentsModel(image: UIImage(named: "simage2")!),AttachmentsModel(image: UIImage(named: "simage1")!),AttachmentsModel(image: UIImage(named: "simage1")!),AttachmentsModel(image: UIImage(named: "simage1")!)] |
I hereby claim:
To claim this, I am signing this object:
extension Sequence { | |
public func inspect( | |
_ body: (Element) throws -> Void | |
) rethrows -> Self { | |
for element in self { | |
try body(element) | |
} | |
return self | |
} | |
} |
#import <objc/runtime.h> | |
@implementation WebViewInjection | |
+ (void)allowDisplayingKeyboardWithoutUserAction { | |
Class class = NSClassFromString(@"WKContentView"); | |
NSOperatingSystemVersion iOS_11_3_0 = (NSOperatingSystemVersion){11, 3, 0}; | |
if ([[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion: iOS_11_3_0]) { | |
SEL selector = sel_getUid("_startAssistingNode:userIsInteracting:blurPreviousNode:changingActivityState:userObject:"); |
import UIKit | |
import Accelerate | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
let imageForConversion = #imageLiteral(resourceName: "InputImage") |
ParseQuery<ParseObject> query = ParseQuery.getQuery("Login_Class"); | |
query.whereEqualTo("Username", username_text); | |
query.whereEqualTo("Password", password_text); | |
query.getFirstInBackground(new GetCallback<ParseObject>() { | |
public void done(ParseObject object, ParseException e) { | |
if (object == null) { | |
Log.d("score", "The getFirst request failed."); | |
} else { | |
Log.d("score", "Retrieved the object."); | |
} |
let query = PFQuery(className:"TestObject") | |
query.getObjectInBackgroundWithId("wl79cMD28y") { | |
(gameScore: PFObject?, error: NSError?) -> Void in | |
if error == nil { | |
print(gameScore!.objectForKey("latitude") as! String) | |
} else { | |
print(error) | |
} |