Skip to content

Instantly share code, notes, and snippets.

View jerrypm's full-sized avatar
🎯
Focusing

Jerry <N.P> jerrypm

🎯
Focusing
View GitHub Profile
{
"status": 200,
"data": {
"banners": [
{
"image_url": "https://i.ibb.co/yk2JRBN/Container-1.png",
"id": 1
},
{
"image_url": "https://i.ibb.co/MGVygRf/Container-1-1.png",
{
"wallpapers": [
{
"id": "1",
"name": "Nature Landscape",
"image_url": "https://raw.githubusercontent.com/jerrypm/nextproject/master/wallpaper01_low.jpg"
},
{
"id": "2",
"name": "Abstract Blue",
// Created by Jeri Purnama on 24/02/23.
/*
Use this Pod to Filter Image
https://cocoapods.org/pods/MetalPetal
*/
import SwiftUI
import MetalPetal
struct ContentViewOne: View {
{
"message": "Success",
"data": [{
"imageUrl": "https://st2.depositphotos.com/1692343/5636/i/950/depositphotos_56360353-stock-photo-hot-homemade-pepperoni-pizza.jpg",
"title": "Pepperoni Pizza",
"desc": "Cheesy pepperoni pizza with tomato sauce.",
"price": 10.99,
"ingredient": [
"Pizza dough",
"Tomato sauce",
@jerrypm
jerrypm / page_grid.dart
Last active February 21, 2023 08:51
for change gridView and listView
import 'package:flutter/material.dart';
//Model Image
class ImageData {
String path;
String title;
String date;
{
"status": "success",
"message": "Login successful",
"data": {
"user_id": 101,
"username": "johndoe",
"password": "12345678",
"email": "johndoe@example.com",
"token": "abcdefghijklmnopqrstuvwxyz",
"is_ok": true
@jerrypm
jerrypm / add_count.dart
Created February 17, 2023 07:07
add_count.dart
import 'dart:async';
import 'package:flutter/material.dart';
class AddItemsPage extends StatefulWidget {
@override
AddItemsPageState createState() => AddItemsPageState();
}
class AddItemsPageState extends State<AddItemsPage> {
// const AddItemsPage({super.key});
import UIKit
import WebKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Configure the web view for JavaScript injection
configureWebView()
@jerrypm
jerrypm / CustomTableView.swift
Created December 13, 2021 00:29
This can help you set auto height table inside tableview
import Foundation
import UIKit
public class UITableViewCustom: UITableView {
public override var intrinsicContentSize: CGSize {
self.layoutIfNeeded()
return self.contentSize
}
public override var contentSize: CGSize {
/*
here is stackView as tableView in table cell
Created by jeri pm
*/
import UIKit
class StepThreeTableViewCell: UITableViewCell {
@IBOutlet weak var titleTable: UILabel!
@IBOutlet weak var subview: UIView!