Skip to content

Instantly share code, notes, and snippets.

View JitendraZaa's full-sized avatar

Jitendra Zaa JitendraZaa

View GitHub Profile
@JitendraZaa
JitendraZaa / dbOperations.js
Created November 16, 2014 02:51
Database Operations in Node.js using Postgres
module.exports = {
getRecords: function(req, res) {
var pg = require('pg');
//You can run command "heroku config" to see what is Database URL from Heroku belt
var conString = process.env.DATABASE_URL || "postgres://postgres:Welcome123@localhost:5432/postgres";
var client = new pg.Client(conString);
client.connect();
@JitendraZaa
JitendraZaa / File 1 - package.json
Last active August 29, 2015 14:09
package.json file of node-postgres repository
{
"name": "BasicCRUDOperation",
"version": "1.0.0",
"description": "CRUD Operations in Node.js using PostgreSQL",
"main": "server.js",
"dependencies": {
"http": "~0.0.0",
"request": "~2.36.0",
"express": "~4.4.5",
"logfmt": "~1.1.2",
@JitendraZaa
JitendraZaa / REST API Playground.html
Last active August 29, 2015 14:09
Salesforce REST API Playground
<!-- This page is used as POC to call REST API from Visualforce -->
<apex:page showHeader="false" sidebar="false" standardStylesheets="false">
<style>
body
{
font-family: "Open Sans", Helvetica, Arial, sans-serif;
font-size : 0.8em;
}
lable
{
@JitendraZaa
JitendraZaa / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
paper-button.colored {
color: rgb(66, 133, 244);
}
@JitendraZaa
JitendraZaa / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
@JitendraZaa
JitendraZaa / designer.html
Created November 23, 2014 03:45
designer
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-profile.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@JitendraZaa
JitendraZaa / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
@JitendraZaa
JitendraZaa / Blogs-To-Follow-OPML.xml
Last active June 7, 2016 13:14 — forked from abhinavguptas/Blogs-To-Follow-OPML.xml
Best Salesforce Developer Blogs to Follow
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Salesforce Blogs to follow</title>
</head>
<body>
<outline text="salesforce" title="salesforce">
<outline type="rss" text="Sundog" title="Sundog" xmlUrl="http://feeds2.feedburner.com/Sunblog" htmlUrl="http://www.sundoginteractive.com/sunblog/"/>
<outline type="rss" text="Secure Salesforce" title="Secure Salesforce" xmlUrl="http://simplyforce.blogspot.com/feeds/posts/default" htmlUrl="http://simplyforce.blogspot.com/"/>
<outline type="rss" text="Andrew Boettcher - Salesforce Technologist" title="Andrew Boettcher - Salesforce Technologist" xmlUrl="http://techman97.wordpress.com/feed/" htmlUrl="http://techman97.wordpress.com"/>
@JitendraZaa
JitendraZaa / Lookup.cmp.html
Last active January 18, 2020 07:02
Salesforce Lightning Lookup component - Pure SLDS and Javascript based
<aura:component controller="Lookup">
<aura:attribute Name="selItem" type="object" access="public"
description="This attribute can be used by parent component to read selected record"/>
<aura:attribute Name="server_result" type="object[]" access="private" />
<aura:attribute name="lookupIcon" type="String" access="public" default="standard:contact"/>
<aura:attribute name="objectName" type="String" access="public"
description="Name of Object to be searched"/>
<aura:attribute name="field_API_text" type="String" access="public"
@JitendraZaa
JitendraZaa / LookupDemo.cmp.html
Last active July 5, 2017 17:31
Demo component to show usage of Lookup Component
<aura:component >
<aura:attribute Name="selItem" type="object" access="public" />
<aura:attribute Name="selItem1" type="object" access="public" />
<aura:attribute Name="selItem2" type="object" access="public" />
<aura:attribute Name="selItem3" type="object" access="public" />
<div class="slds">
<div class="slds-grid slds-wrap">
<div class="slds-size_1-of-1
slds-small-size_1-of-1
slds-medium-size_1-of-2