Skip to content

Instantly share code, notes, and snippets.

View helderjnpinto's full-sized avatar
☢️

ħþ helderjnpinto

☢️
View GitHub Profile
@KritikaSharmaKS
KritikaSharmaKS / sharp-examples.js
Created November 21, 2020 22:40
Process Images with SharpJS | Image cropping, enhance quality, reduce image size, and more...
const sharp = require("sharp");
sharp("Niagara-Falls-Casinos.jpg")
.resize({ width: 250, height: 350 })
.greyscale()
.grayscale()
.negate(false)
.blur()
.toFile("output1.jpg");

TensorFlow

Índice

    1. What is TensorFlow?
      • 1.1. Introduction
        • 1.2. Design principles
      • 2.0 TF Execution model
        • 2.1. Dataflow graph elements
        • 2.2. Partial and concurrent execution
        • 2.3. Distributed execution
  • 2.4 Dynamic control flow
pragma solidity ^0.4.24;
//interface for parent contract of any child token
/*
- Parent contract interface for adding custom logic before calling the 'transfer' function
in the ERC721/ERC20 child chain contract on the Matic chain
- 'transfer' executes the 'beforeTransfer' of this interface contract
- It must follow this interface and return a bool value and
- in case of ERC20 contracts, it should not have 'require' statements and instead return 'false'
- IParentToken contract address in childchain contract can be updated by owner set in rootchain contract only
@barnybug
barnybug / docker-compose.yml
Created November 21, 2017 11:14
Docker compose for a Docker-in-docker gitlab runners setup
# Docker-in-Docker Gitlab runners setup taken from:
# https://medium.com/@tonywooster/docker-in-docker-in-gitlab-runners-220caeb708ca
dind:
restart: always
privileged: true
volumes:
- /var/lib/docker
image: docker:17.09.0-ce-dind
command:
- --storage-driver=overlay2

Definitions

  • Chat Widget: A chat icon that expands into a chat window and allows visitors of a website to chat with the hosts.
  • Host: entity that is hosting the chat widget and has access to the configuration of the chat backend and the chat dashboard.
  • Host user: a user that is a member of the Host entity.
  • Visitor: a user that established a conexion to the host and wants to chat.
  • Identified Visitor: a visitor that has given a form of contact (Email | Phone)

Chat Widget Components

@rubencaro
rubencaro / install_elixir.md
Last active September 30, 2023 03:58
Elixir installation guide

Elixir installation guide

Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.

The simplest way to install elixir is using your package manager. Sadly, at the time of writing only Fedora shows the intention to keep its packages up to date. There you can simply sudo dnf install erlang elixir and you are good to go.

Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to a specific version, you will need to compile it yourself. Then asdf is your best friend.

@gitaarik
gitaarik / git_submodules.md
Last active May 1, 2024 12:25
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@rgreenjr
rgreenjr / postgres_queries_and_commands.sql
Last active May 1, 2024 13:31
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'