Skip to content

Instantly share code, notes, and snippets.

View srinu2003's full-sized avatar

Srinivas Rao Tammireddy srinu2003

View GitHub Profile
@srinu2003
srinu2003 / addProductsToOpp.apex
Last active May 14, 2026 13:04
An anonymous Apex script designed to generate products, associate them with price book entries, and link them to specific Opportunity.
List<Product2> products = new List<Product2>();
for (Integer i = 1; i <= 9; i++) {
Product2 p = new Product2();
p.Name = 'S Test Product ' + i;
p.ProductCode = 'STP' + (5000 + i);
p.IsActive = true;
p.Description = (i <= 3) ? 'Software' : (i <= 6) ? 'Hardware' : 'Services';
products.add(p);
}
@srinu2003
srinu2003 / main.dart
Created January 21, 2024 10:56
Flutter Simple Animation Example
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const CupertinoApp(
home: MyHomePage(),