Skip to content

Instantly share code, notes, and snippets.

View jerrypm's full-sized avatar
🎯
Focusing

Jerry <N.P> jerrypm

🎯
Focusing
View GitHub Profile
@jerrypm
jerrypm / gist:ac2a64a38316bac0dcd1fc912d8ee117
Created August 9, 2026 04:56
privacy-policy-figma-to-code
# Privacy Policy — Figma → Code (local)
Last updated: August 9, 2026
Figma → Code (local) is a Chrome extension that reads a Figma .fig file or a pasted layer, entirely on your device, and generates HTML from it.
## Data we collect
We do not collect, store, or transmit your Figma design files, layer data, or generated HTML to any server. All parsing and code generation happens locally in your browser.
import SwiftUI
import Combine
import UIKit
import SafariServices
// MARK: - Route Protocols
/// Protocol defining a navigation route that can be executed from a view controller
///
/// Routes encapsulate navigation logic and can be executed from any UIViewController.
import SwiftUI
import Charts
import Combine
// MARK: - Custom Chart Symbols
struct SelectionCircleSymbol: ChartSymbolShape {
func path(in rect: CGRect) -> Path {
let center = CGPoint(x: rect.midX, y: rect.midY)
let radius = min(rect.width, rect.height) / 2
@jerrypm
jerrypm / attributesString.swift
Last active May 4, 2025 10:01
attributesString minimal iOS 15
import SwiftUI
/*
Available for iOS 15
*/
struct AttributedStringView: View {
let htmlString: String
let font: Font
let textColor: Color
{
"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