Skip to content

Instantly share code, notes, and snippets.

@BalajiIyengar
BalajiIyengar / mail through c#.net
Created June 22, 2014 12:57
Sending Mails through c#.net
var fromAddress = new MailAddress("[email protected]", "Balaji Iyengar");
var toAddress = new MailAddress("[email protected]", "c# balaji");
const string fromPassword = "xyz";
const string subject = "My First c# mail";
const string body = "Yay,it worked.";
var smtp = new SmtpClient
{
Host = "smtp.gmail.com",
Port = 587,
@BalajiIyengar
BalajiIyengar / Create Stored Procedures
Last active August 29, 2015 14:02
Create Stored Procedures
Create procedure sp_createInstallment
(
@studentId int,
@installmentNo int,
@monthlyPattern int,
@preferredDate date,
@perferredAmount money
)
AS
Begin
@BalajiIyengar
BalajiIyengar / javascript tricks
Created June 10, 2014 09:17
javascript tricks
http://www.arungudelli.com/javascript/most-useful-javascript-tips-and-tricks/
@BalajiIyengar
BalajiIyengar / webrtc
Last active August 29, 2015 14:02
WEB-RTC
http://lynckia.com/licode/install.html
http://dev.w3.org/2011/webrtc/editor/webrtc.html
http://www.html5rocks.com/en/tutorials/webrtc/basics/
MediaStream --> Get Access To Devices;
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.gordondickens.sample</groupId>
<artifactId>sample-parent</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
@BalajiIyengar
BalajiIyengar / java templates for eclipse
Created June 2, 2014 17:48
java templates for eclipse
For Iteration(Fastest)
for (int i = Object.size(); i > 0; i--) {
Object.get(i);
}
spring jdbc mapper
/**
*
ajax:
$$.ajax(
url:"",
type:"",
data:"",
success:function(data)
{
},
@BalajiIyengar
BalajiIyengar / gist:fbb48dc07629f59ddd70
Last active August 29, 2015 14:01
Git Commands (Practicals)
Files in A Commit
git show --pretty="format:" --name-only commitRSA (To see th list of files in the commit)
git ls-tree --name-only -r <commit-ish> (Files in a commit)
git diff HEAD~1 --name-only
Removing Files From a Commit
git reset --soft HEAD~1(could be Head~2 in case you've resolved conflicts or are in between merge)