A pointer gives me the address of an object, ok. Nevertheless,
is
int * x_ptr;
the reverse of&
?: give it a pointer and it gives me an objectis
int & x_ref = y;
the reverse of*
?: give it an object and give me a pointer
A pointer gives me the address of an object, ok. Nevertheless,
is int * x_ptr;
the reverse of &
?: give it a pointer and it gives me an object
is int & x_ref = y;
the reverse of *
?: give it an object and give me a pointer
I work in a branch called master2
, the thing is that I made small changes in 1 file and when I tried to upload them, I made a mistake and git pull origin master
when push
I did, almost all the files in the repository with conflict appeared, I tried to solve them but there was no case. I need to go back to the latest stable version of the repository or if it is possible, revert the changes or delete thecommits
EDITION
There are 4 commits after the one you want to go back, can you go back 4 commits before?
I usually include a favicon on my web pages with an icon .ico
, doing something like this:
<link rel="icon" href="./favicon.ico" />
But I've seen quite a few websites do it with images with extension .png
, and with different values for the attribute rel
(like "shortcut icon" or "apple-touch-icon").
What image format is more appropriate for favicon in modern browsers? What are the advantages of using one over the other? And the same for the attribute rel
: is there a difference between "icon" or "shortcut icon"? (assuming "apple-touch-icon" is specific to Apple devices)
I know more or less what AJAX is. However, it is still not clear to me how to use it, and I would like to learn how to use it because I see that it is something elementary today.
I have searched for tutorials on the internet, but they are mostly outdated and old. My question is: Could you give me some simple code example you have and how to learn how to use it? Do I need a server side language like PHP?
My method to access a json url is as follows and it works, but now I want to go through the json with a for and its ´.length´ but I couldn't.
The json from which I want to get the url is the following
http://www.jsoneditoronline.org/?id=74fa8799c027f3af0b2faf44ac1c9e47
<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js</scr>
<div id="success">
<div id="artisturl"></div>
</div>
$.ajax({
type : 'GET',
url : 'https://api.spotify.com/v1/search',
data : {'q':'coldplay',
'type':'artist'
},
dataType : 'json',
success : function(data) {
$('#success #artisturl').html(data.artists.items[0].uri) ;
},
}) ;