Skip to content

Instantly share code, notes, and snippets.

View sriram15690's full-sized avatar

Sriram R sriram15690

View GitHub Profile
var User = function (fname, lname) {
this.fname = fname;
this.lname = lname;
this.fullname = function(){
console.log("Fullname is "+this.fname+" "+this.lname);
};
};
var Member = function(memberId, fname, lname) {
def lambda_test(x)
lam = lambda { |x| puts "Square is #{x * x}"; return; puts "cube is #{x*x*x}" }
lam.call x
puts "Hello World in Lambda"
end
def proc_test(x)
proc = Proc.new do |x|
puts "Square is #{x * x}"
return
http://busypeoples.github.io/post/react-component-lifecycle/
http://www.undefinednull.com/2015/05/03/react-tdd-example-unit-testing-and-building-a-react-component-with-jest-gulp-and-react-test-utils/
http://www.jackcallister.com/2014/12/01/building-a-test-suite-in-react-js.html
Mocha- React:
http://www.hammerlab.org/2015/02/14/testing-react-web-apps-with-mocha/
@sriram15690
sriram15690 / urls
Last active October 5, 2016 08:37
urls
Testing:
http://code.tutsplus.com/tutorials/testing-your-javascript-with-jasmine--net-21229
http://awaxman11.github.io/blog/2013/08/05/what-is-the-difference-between-a-block/
React:
http://busypeoples.github.io/post/react-component-lifecycle/
jQuery Cheatsheet:
https://oscarotero.com/jquery/
@sriram15690
sriram15690 / ldapRuby
Created June 27, 2015 20:24
LDAP with Ruby
#dc - domain component
#cn - common name
#ou - org units
require 'net/ldap'
class Ldap
attr_accessor :ldap_connection, :params, :ldap_response
def initialize(params = {})
self.ldap_connection = connect_to_ldap_server()