Skip to content

Instantly share code, notes, and snippets.

View iamricard's full-sized avatar
🐕‍🦺

Ricard Solé iamricard

🐕‍🦺
View GitHub Profile
@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 -->

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 / 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>
// 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();
<html>
<style>
pre {
height: 25px;
overflow: hidden;
}
.expanded {
height: auto;
}
@iamricard
iamricard / README.md
Last active May 31, 2016 07:52
DOM Manipulation exercise

Make the card

When the user clicks “Submit”, their input should display on the card

  • Get the value of each input field
  • Add it as HTML to the correct element in the business card template

Change the color

When the user clicks “Submit”, their input should display on the card

  • Get the value of each input field
  • Add it as HTML to the correct element in the business card template
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>
<div class="container" style="margin-top: 50px;">
<button class="btn btn-primary hello-button">Do Something</button>
</div>
@iamricard
iamricard / Dosificador.php
Created August 31, 2014 13:11
PHP example
<?php
class Dosificador {
private $name;
public function getName() {
return $this->name;
}
public function setName($name) {
$this->name = $name;
@iamricard
iamricard / Game.cpp
Created March 30, 2014 21:04
sdl2, box2d, cmake
// Copyright 2014-present [Ricard Sole <@rcsole, [email protected]>]
#include <cstdio>
#include "./Game.h"
bool Game::init(const char* title, int xpos, int ypos, int width,
int height, int flags) {
if (SDL_Init(SDL_INIT_EVERYTHING) == 0) {
printf("SDL_Init success\n");
@iamricard
iamricard / main.lua
Created January 17, 2014 12:04
facebook
MOAISim.openWindow ( "Test Menu", 960, 640 )
MOAIGfxDevice.getFrameBuffer():setClearColor ( 1, 1, 1, 1 )
-- VIEWPORT
viewport = MOAIViewport.new ()
viewport:setSize ( 960, 640 )
viewport:setScale ( 960, 640 )
-- LAYER
partition = MOAIPartition.new ()