This usually happens when there's another Terminal window open, it works after closing the other terminal window.
Thursday, May 15, 2014
Wednesday, May 14, 2014
Git create new branch, pull from master and push into new branch
// first check the branch git branch // create a new branch [development] git branch development // checkout into new branch [development] git checkout development // pull from master git pull origin master // push into new branch [development] git push origin development
Tuesday, May 13, 2014
Github “Updates were rejected because the remote contains work that you do not have”
// Git: “please tell me who you are” error git init git config user.name "someone" git config user.email "someone@someplace.com" git add * git commit -m "Initial commit" git remote add origin //your github url //pull those changes git pull origin master //now, push your work to your new repo git push origin master
Friday, May 9, 2014
How can I upload fresh code at github?
git init git add . git commit -m "Initial commit" git remote add origin https://github.com/username/Hello-World.git # Creates a remote named "origin" pointing at your GitHub repository git push origin master # Sends your commits in the "master" branch to GitHub
Thursday, March 13, 2014
Wednesday, February 5, 2014
Checkbox checked attribute add through Jquery
HTML
Jquery
$("#environment").each(function(){ $(this).change(function () { if ($(this).val() == "Non Security Device") { $('#cla_checkbox').prop('checked', true); } else{ $('#cla_checkbox').prop('checked', false); } }); });
Wednesday, October 9, 2013
Jquery textbox accept only alpha characters
HTML
Jquery
$('#alphaonly').bind('keypress', function (event) { var regex = new RegExp("^[a-zA-Z]+$"); var key = String.fromCharCode(!event.charCode ? event.which : event.charCode); if (!regex.test(key)) { event.preventDefault(); return false; } });
Subscribe to:
Posts (Atom)
Javascript find highest and lowest from the given inputs
function highAndLow(numbers){ // numbers = "4 5 29 54 4 0 -214 542 -64 1 -3 6 -6" let numbersInArr = numbers.split(' ...
-
----------HTML---------------- * Expiration - Select - Jan Feb Mar Apr May June July Aug Sep Oct Nov Dec - Select - 2011 20...
-
Phone Number: ------------Jquery------------------- $('#txtboxID').keyup(function () { var val = this.value.replace(/\D/g, ...
-
function functionAmount(e) { if (window.event) { code = event.keyCode; if ((code >= 48 ...