Skip to content

Instantly share code, notes, and snippets.


Igor C. de Paula IgorDePaula

Block or report user

Report or block IgorDePaula

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
IgorDePaula / composer.json
Created Mar 22, 2020 — forked from andyshinn/composer.json
Docker Compose PHP Composer Example
View composer.json
"require": {
"mfacenet/hello-world": "v1.*"
View post-receive
while read oldrev newrev ref
# only checking out the master (or whatever branch you would like to deploy)
View Tray.js
import { app, BrowserWindow, nativeTheme, Menu, Tray, nativeImage } from 'electron'
const path = require('path')
let tray = null
try {
if (process.platform === 'win32' && nativeTheme.shouldUseDarkColors === true) {
require('fs').unlinkSync(require('path').join(app.getPath('userData'), 'DevTools Extensions'))
} catch (_) { }
View creditcard.js
{"cvc": "incomplete", "expiry": "incomplete", "number": "incomplete"},
"valid": false,
{"cvc": "", "expiry": "", "number": "5234", "type": "master-card"}
IgorDePaula /
Created Jan 21, 2020 — forked from curran/
The Iris Dataset

This is the "Iris" dataset. Originally published at UCI Machine Learning Repository: Iris Data Set, this small dataset from 1936 is often used for testing out machine learning algorithms and visualizations (for example, Scatter Plot). Each row of the table represents an iris flower, including its species and dimensions of its botanical parts, sepal and petal, in centimeters.

The HTML page provides the basic code required to load the data and display it on the page (as JSON) using D3.js.

View CalculeDistance.js
function deg2rad(deg) {
return deg * (Math.PI / 180);
module.exports = function getDistanceFromLatLonInKm(
) {
const radius = 6371;
View makefile
include .env
.PHONY: help
help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
View read-csv.js
const request = require('request'),
fs = require('fs'),
path = require('path'),
pathRead = '',
const downloadCsv = async (pathRead, pathWrite) => {
await request(pathRead).on('end', (err, data) => {
console.log('=> Download concluído')
View pre-push
if [ `git rev-parse --abbrev-ref HEAD` == "master" ]; then
elif [ `git rev-parse --abbrev-ref HEAD` == "homologacao" ]; then
IgorDePaula / teste.html
Last active Dec 3, 2019
reconhecendo ponto no browser por upload
View teste.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<button id="camera">camera</button>
<button id="screenshot">screenshot</button>
<input type="file" id="file">
You can’t perform that action at this time.