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 'package:flutter/material.dart'; | |
import 'package:letswatch/video_store.dart'; | |
import 'package:provider/provider.dart'; | |
class Video { | |
String url; | |
Status status = Status.notReady; | |
Video(this.url, {this.status = Status.notReady}); |
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 UIKit | |
struct CurrencyFormatter { | |
let currencySymbol: String | |
let customLocale: String | |
private var customNumberFormatter: NumberFormatter { | |
let formatter = NumberFormatter() | |
formatter.locale = Locale.init(identifier: customLocale) |
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 Foundation | |
import Security | |
public enum KeychainWrapperError: Error { | |
case emptyKeyOrValue | |
case failure(status: OSStatus) | |
} | |
class KeychainWrapper { | |
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
// erkanyildiz | |
// 20170828-2105+0900 | |
// | |
// EYSupportMailComposer.h | |
#import <Foundation/Foundation.h> | |
@interface EYSupportMailComposer : NSObject | |
+ (void)presentMailComposerOnViewController:(UIViewController *)viewController withEmail:(NSString *)email; |
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
const formidable = require('formidable'); | |
const fs = require('fs'); | |
var Minio = require('minio'); | |
let minioClient = new Minio.Client({ | |
endPoint: config.MINIO.ENDPOINT, | |
port: config.MINIO.PORT, | |
accessKey: config.MINIO.ACCESS_KEY, |
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
// Let's assume you have two separated HTML DOM elements that | |
// you want to make a secure communication between them | |
// ex: an iframe inside HTML body | |
// since cross domain restrictions you may not access the iframe object | |
// here is how you can manage it (of course if you develop both side) | |
// This code has been developed regarding this document: | |
// https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage | |
// Main Page (index.html) |