Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demoBased off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo| function autotab(orig,dest){ | |
| if (orig.getAttribute&&orig.value.length==orig.getAttribute("maxlength")) | |
| dest.focus(); | |
| } | |
| 74 console.debug('before autotab'); | |
| 75 $(document).ready(function() { | |
| 76 $('.at1').autotab(); | |
| 77 $('.at2').autotab(); | |
| 78 }); |
| storage = {} | |
| storage["first"]={} | |
| storage["middle"]={} | |
| storage["last"]={} | |
| me = "steve seung lim" | |
| storage["first"]["steve"] = me | |
| storage["middle"]["seung"] = me |
| pyg = 'ay' | |
| original = raw_input('Enter a word:') | |
| if len(original) > 0 and original.isalpha(): | |
| word = original.lower() | |
| first = word[0] | |
| new_word = word[1:] + first + pyg | |
| print new_word | |
| else: |
| def secure_token | |
| token_file = Rails.root.join(".secret") | |
| if File.exist?(token_file) | |
| File.read(token_file).chomp | |
| else | |
| token = SecureRandom.hex(64) | |
| File.write(token_file, token) | |
| token | |
| end | |
| end |
| var steve = { | |
| name: "Steve", | |
| }; | |
| var haeseong = { | |
| name: "haeseong", | |
| }; | |
| var protoRun = { | |
| run: function(name){ |
| describe("calculator",function(){ | |
| var calc; | |
| beforeEach(function(){ | |
| calc = new Calculator(); | |
| }) | |
| describe("addition", function(){ | |
| it("should be able to add a sum", function(){ | |
| var result = calc.addition(5,3); | |
| expect(result).toBe(8); | |
| }); |
| <script> | |
| var myApp = angular.module('myApp', []); | |
| myApp.controller("myFirst", function($scope){ | |
| $scope.clock = new Date(); | |
| var updateClock = function(){ | |
| $scope.clock = new Date(); | |
| } | |
| setInterval(function(){ | |
| $scope.$apply(updateClock);}, 1000); | |
| updateClock(); |
| $(document).ready(function(){ | |
| var allQuestions= []; | |
| var questionNumber = 0; | |
| var score = 0; | |
| var name=[]; | |
| allQuestions[0]={question:"What is 2 + 2?", | |
| choices:[0,2,3,4], | |
| correct:3 }; | |
| allQuestions[1]={question:"What is 2 * 2?", | |
| choices:[0,2,3,4], |
| <html> | |
| <head> | |
| <title>example javascript</title> | |
| </head> | |
| <body> | |
| <form name="logInForm" method="post" onsubmit="return validate()"> | |
| First name:<input type="text" id="firstName" name="firstName" > | |
| Last name:<input type="text" id="lastName" name="lastName" > | |
| <input type="submit" value="LogIn" id="logIn">////<---------this type comes in pair with onsubtmit attribute!!! | |
| <div id="error"></div> |