Skip to content

Instantly share code, notes, and snippets.

View iamricard's full-sized avatar
🐕‍🦺

Ricard Solé iamricard

🐕‍🦺
View GitHub Profile
// A simple Particle class
window.Particle = function(position, acceleration) {
this.acceleration = createVector(0, acceleration || 0.15);
this.velocity = createVector(random(-1, 1), random(-1, 0));
this.position = position.copy();
this.lifespan = 255.0;
};
Particle.prototype.run = function() {
this.update();
@iamricard
iamricard / app.js
Created September 16, 2015 07:32
Spotify artist search
(function() {
function artistElement(artist) {
var img = artist.images[0] || { url: 'http://placehold.it/64x64' }
return `
<div class="media artist" data-id="${artist.id}">
<div class="media-left">
<img class="media-object" src="${img.url}" />
</div>

Keybase proof

I hereby claim:

  • I am rcsole on github.
  • I am ricardsole (https://keybase.io/ricardsole) on keybase.
  • I have a public key ASCHwXCmbvSR8zpyKLQ3LVIcv1GiGQDgk-oqXzXxe3c2Ywo

To claim this, I am signing this object:

@iamricard
iamricard / error.md
Created June 7, 2021 10:36
Error LaMevaSalut

Server Error in '/VisitesIServeis' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->