Skip to content

Instantly share code, notes, and snippets.

View dferrandizmont's full-sized avatar
🏠
Working from home

Daniel Mont Ferrandiz dferrandizmont

🏠
Working from home
  • Terrassa, Barcelona.
  • 11:28 (UTC +02:00)
View GitHub Profile
@dferrandizmont
dferrandizmont / public-apis.md
Created January 10, 2019 09:09
[Public APIs 3] inglés #api

Public-APIs Twitter: @abgbm Build Status PRs Welcome

This is an attempt to categorise different APIs scoured from the web which make their resources available for consumption.

*Items marked with Open Source are open-source *Items marked with 💸 are trial based APIs

Table of Contents

@dferrandizmont
dferrandizmont / uniswap-v3-example.sol
Created December 11, 2023 21:47 — forked from mempirate/uniswap-v3-example.sol
Simple example on how to swap on UniswapV3 with the SwapRouter
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@uniswap/v2-periphery/contracts/interfaces/IWETH.sol";
import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol";
import "@uniswap/v3-core/contracts/libraries/LowGasSafeMath.sol";
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol";
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
@dferrandizmont
dferrandizmont / regex-cheatsheet.md
Last active November 12, 2023 02:54
[Regex cheatsheet] #regex

Regular Expressions

Basic Syntax

  • /.../: Start and end regex delimiters
  • |: Alternation
  • (): Grouping
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Daniel Ferrandiz Mont",
"label": "Java Developer",
"image": "",
"email": "dferrandizmont@gmail.com",
"phone": "637979142",
"url": "",
"summary": "I would consider myself detail-oriented, even though my strong suit is backend development, I cannot ignore my inner designer who pays close attention to the presentation of everything, such as typography, button color, code indentation, and margins. I am a team player, and knowledge sharing is the most important aspect of work for me. Thanks to it, I grow every day, and I couldn't imagine a week without learning something new.\n\nI have worked with people who speak my own language, as well as English, Czech, Slovak, Russian, and one of the most enjoyable things is trying to learn the basics of their language. The look of excitement on their face when you try to say something in their language is priceless.\n\nI am a Java
@dferrandizmont
dferrandizmont / sass-cheatsheet.md
Created December 16, 2018 10:44
[SASS cheatsheet] #css #sass

//Single line comments are removed when Sass is compiled to CSS.

/* Multi line comments are preserved. */

/* Variables

@dferrandizmont
dferrandizmont / css-media-queries-cheat-sheet.css
Last active September 20, 2022 18:51
[CSS media queries] #css
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@dferrandizmont
dferrandizmont / Java conventions.md
Last active August 2, 2022 06:54
[Java conventions] #java

Coding Conventions

This file will cover important coding practices that are important to stress when coding this program. Listed below are some of the more important details that should be stressed. Each programmer has his/her own way to deliver code. The importance of having similar coding conventions throughout this program are listed below.

  • 80% of the time spent on a piece of software goes to maintenance.
  • Hardly any software is maintained for its whole life by the original author.
  • Code conventions improve the readability of the software, allowing engineers to understand new code more quickly and thoroughly.
  • If you ship your source code as a product, you need to make sure it is as well packaged and clean as any other product you create.
@dferrandizmont
dferrandizmont / docker.md
Created April 13, 2022 11:10 — forked from zmts/docker.md
Docker, TypeScript, Node.js

Docker, TypeScript, Node.js

Preconditions:

  • TS application listening port: 7777
|-- dist
|-- src
|-- .dockerignore
|-- Dockerfile
@dferrandizmont
dferrandizmont / awesome-api.md
Created January 10, 2019 09:08
[Public APIs 2] inglés #api

Awesome API Awesome Build Status Donate

A curated list of awesome resources for design and implement RESTful APIs.

Design

Overview

REST allows us to create services and applications that can be used by any device or client who understands HTTP.