This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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() |
NewerOlder