Skip to content

Instantly share code, notes, and snippets.

<connectionStrings>
<add name="HRManagementEntities" connectionString="metadata=res://*/Models.Entity.EntityModel.csdl|res://*/Models.Entity.EntityModel.ssdl|res://*/Models.Entity.EntityModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=SURABHI\SQLEXPRESS;initial catalog=NorthwindTest;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="HRManagementDbConn"
connectionString="Server=SURABHI\SQLEXPRESS; Database=NorthwindTest;"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<membership defaultProvider="HRManagementSqlMembershipProvider">
def initiate_2d_array(n,m):
arr = [None] * n
for i in xrange(n):
arr[i] = [None]*m
return arr
public class CompareStrings {
public static void main(String[] args) {
String month = "February";
if(month.equals("February")){
System.out.println("its the second month");
}
}
public class Main {
public static void main(String[] args) {
int monthNumber = 3;
if (monthNumber>=1 && monthNumber<=3) {
System.out.println("first quarter");
}
else if(monthNumber>=4 && monthNumber<=6) {
public class Main {
public static void main(String[] args) {
}
}
@codebleeder
codebleeder / gist:11016811
Created April 17, 2014 23:20
moving elements in jQuery using .after()
$(document).ready(function(){
$('element1').after('element2');
});
@codebleeder
codebleeder / jQuery_basic_format.js
Created April 15, 2014 07:13
starting format for jQuery
$(document).ready(function() {
// jQuery code
});
def start_node(possessions):
print 'there are zombies following you!!'
print 'pick one: go \"left\" or go \"right\" '
direction = raw_input('>')
if direction == "left" :
chainsaw_node("start_node",possessions)
elif direction == "right" :
key_node("start_node",possessions)
else :
print 'dude .. theres zombies on our tail .. type correct or u r one dead meat !!'