Skip to content

Instantly share code, notes, and snippets.

View jerrypm's full-sized avatar
🎯
Focusing

Jerry <N.P> jerrypm

🎯
Focusing
View GitHub Profile
// NumberBeforeStringVC.swift
// For Test Part 4
//
// Created by Jeri PM on 05/10/18.
// Copyright © 2018 Jeri PM. All rights reserved.
//
class NumberStringVC: UIViewController {
@IBOutlet weak var texField: UITextField!
@IBOutlet weak var texField1: UITextField!
//
// CustomAlbum.swift
// TestPart5
//
// Created by Jeri Purnama on 10/10/18.
// Copyright © 2018 jeriPm. All rights reserved.
//
import Foundation
import Photos
import Photos
import UIKit
class ImageFolderViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
@IBOutlet weak var fotoImg: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
}
// For Int
import UIKit
class MentionHalfBoldViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let txt = "Lorem ipsum @[1484987415095898:274:Page Four] dolores"
import UIKit
class EmojiReadViewController: UIViewController {
@IBOutlet weak var labelAndroidToIOS: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
var dataFromAndroid = "&#128522;&#128513; loream ipsum qeqeura dafult"
import Alamofire
import SwiftyJson
import AVFoundation
import UIKit
class TestViewController: UIViewController, GalleryDelegate {
@IBOutlet weak var imgView: UIImageView!
var url: URL?
let videoUrl = "https://api.example/video... "
//Visit my blog http://scripttes.blogspot.com/
//IOS Template https://codecanyon.net/item/simple-qr-code-barcode-scanner-generate-ios-12-and-13/25018066
import Foundation
import UIKit
extension UIView {
func setGradientBackground(colorOne: UIColor, colorTwo: UIColor) {
let gradientLayer = CAGradientLayer()
gradientLayer.frame = bounds
import Foundation
import UIKit
class CountTextField: UITextField, UITextFieldDelegate {
lazy var countLabel: UILabel = {
let label = UILabel(frame: CGRect(x: 0, y: 0, width: 20, height: 40))
label.font = UIFont.systemFont(ofSize: 12)
label.textAlignment = .center
label.textColor = #colorLiteral(red: 0.1098039216, green: 0.5176470588, blue: 0.8588235294, alpha: 1)
label.text = "16"
@jerrypm
jerrypm / MakeTransparentHoleOnOverlayView.swift
Created January 3, 2019 09:53 — forked from aldo-jlaurenstin/MakeTransparentHoleOnOverlayView.swift
Make a Transparent Hole on an Overlay UIView
//
// MakeTransparentHoleOnOverlayView.swift
//
// Created by James Laurenstin on 2015-04-10.
// Copyright (c) 2015 Aldo Group Inc. All rights reserved.
//
import UIKit
class MakeTransparentHoleOnOverlayView: UIView {
@jerrypm
jerrypm / apiTest
Last active September 20, 2021 02:11
{
"data": [
{
"id": 1,
"type": "instrumental",
"title": "Guitar A",
"image_name": "xxxxx.jpg",
"isLock": false,
"desc": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
"song": [