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
// | |
// TripleEqualsExampleViewController.swift | |
// UpgradeMySelf-ios | |
// | |
// Created by Shubham Sharma on 09/05/22. | |
// Copyright © 2022 Shubham Sharma. All rights reserved. | |
// | |
import UIKit |
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
// | |
// ProtocolOrientedProgrammingViewController.swift | |
// UpgradeMySelf-ios | |
// | |
// Created by Shubham Sharma on 09/05/22. | |
// Copyright © 2022 Shubham Sharma. All rights reserved. | |
// | |
import UIKit |
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
// | |
// DebounceViewController.swift | |
// UpgradeMySelf-ios | |
// | |
// Created by Shubham Sharma on 06/05/22. | |
// Copyright © 2022 Shubham Sharma. All rights reserved. | |
// | |
import UIKit |
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
// | |
// KeyPathExampleViewController.swift | |
// UpgradeMySelf-ios | |
// | |
// Created by Shubham Sharma on 09/05/22. | |
// Copyright © 2022 Shubham Sharma. All rights reserved. | |
// | |
import UIKit |
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 android.app.AlertDialog; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.util.Log; | |
import android.webkit.JavascriptInterface; | |
import android.webkit.WebView; | |
import android.webkit.WebViewClient; |
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
// | |
// WebViewScriptViewController.swift | |
// UpgradeMySelf-ios | |
// | |
// Created by Shubham Sharma on 20/01/20. | |
// Copyright © 2020 Shubham Sharma. All rights reserved. | |
// | |
import UIKit | |
import WebKit |
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
// | |
// ThumbViewController.swift | |
// UpgradeMySelf-ios | |
// | |
// Created by Shubham Sharma on 19/02/20. | |
// Copyright © 2020 Shubham Sharma. All rights reserved. | |
// | |
import UIKit | |
import AVKit |
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
@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR1) | |
public static Bitmap blurRenderScript(Context context, Bitmap srcBitmap, int radius) { | |
Bitmap bitmap = Bitmap.createBitmap( | |
srcBitmap.getWidth(), srcBitmap.getHeight(), | |
Bitmap.Config.ARGB_8888); | |
RenderScript renderScript = RenderScript.create(context); | |
Allocation blurInput = Allocation.createFromBitmap(renderScript, srcBitmap); | |
Allocation blurOutput = Allocation.createFromBitmap(renderScript, bitmap); |