This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
App.ProfilePhotoView = Ember.View.extend({ | |
click: function(evt) { | |
this.get('controller').send('expandProfilePhoto'); | |
} | |
}); | |
App.UserController = Ember.ObjectController.extend({ | |
actions: { | |
expandProfilePhoto: function() { | |
// Get the expanded picture and display it |
This file contains 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
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script> | |
<script src="http://builds.emberjs.com.s3.amazonaws.com/tags/v1.0.0/ember.js"></script> |
This file contains 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
#Alternate to merge | |
git checkout feature | |
git rebase master | |
#Smash last 2 commits | |
git rebase -i HEAD~2 | |
#Conflicts? | |
#resolve conflicts | |
git add (conflict files) |
This file contains 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
function BaseClass() | |
{ | |
this._map = {}; | |
}; | |
BaseClass.prototype.parseXML = function( key, value ) | |
{ | |
alert("BaseClass::parseXML()"); | |
this._map[key] = value; | |
} |
This file contains 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
# I am working on new feature | |
$ git checkout -b some-new-feature | |
#Changed files, commit and push to source | |
git add . && git commit -m 'some cool changes' && git push origin some-new-feature | |
#After comments within pull request I need to fix some code | |
#After fix it and commit I can see 2 commits within git history | |
$ git add . && git commit -m 'some fix to cool changes' && git push origin some-new-feature | |
$ git log |
This file contains 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
# Make sure you have 2 origins (your forked project and project from which you forked) | |
$ git remote -v | |
# origin git@github.com:a-LERT/schoolTest.git (fetch) | |
# origin git@github.com:a-LERT/schoolTest.git (push) | |
# upstream git@github.com:begin29/schoolTest.git (fetch) | |
# upstream git@github.com:begin29/schoolTest.git (push) | |
# If you have only one add it | |
$ git remote add upstream git@github.com:begin29/schoolTest.git |
OlderNewer