Skip to content

Instantly share code, notes, and snippets.

View JairoDuarte's full-sized avatar
😎
In action

Alfredo Jairo Duarte JairoDuarte

😎
In action
View GitHub Profile
const app = require('./lib/index'),
colors = require('colors/safe'),
{scanf} = require('nodejs-scanf');
console.log(colors.green('Please input value in format: from to money'));
console.log(colors.italic.red('Ex: USD EUR 100'));
console.log(colors.bold(':help -> if you need help'));
// input currency change and value maney
var print = function (params, params1) {
http://codesfusion.blogspot.com.br/2013/10/setup-hadoop-2x-220-on-ubuntu.html
@JairoDuarte
JairoDuarte / swi-prolog Install.md
Last active January 29, 2018 17:18
Install Swi-prolog terminal

macOS / OS X

Install homebrew then run brew install swi-prolog. You can now run the Prolog shell from the command line with swipl.

Important: do not install from the official website, you will get crashes.

Windows

Install from the official website (you need at least a typical installation).

@JairoDuarte
JairoDuarte / README-Template.md
Created March 19, 2018 16:50 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@JairoDuarte
JairoDuarte / app.py
Created June 17, 2018 20:42 — forked from seanbehan/app.py
Flask with Django ORM
'''
Run the following commands (bc. gists don't allow directories)
pip install flask django dj-database-url psycopg2
mkdir -p app/migrations
touch app/__init__.py app/migrations/__init__.py
mv models.py app/
python manage.py makemigrations
python manage.py migrate
@JairoDuarte
JairoDuarte / deploying.md
Created December 15, 2018 18:08 — forked from cedricium/deploying.md
How to Deploy `codyseibert/tab-tracker` (Vue / Express Fullstack Web App)

How to Deploy tab-tracker

Heroku:

Prerequisites:

The following will need to be known / obtained before getting started:

  • Node.js and npm
  • command-line (cli) / terminal
  • Heroku account
  • Heroku CLI installed and setup with your Heroku account
@JairoDuarte
JairoDuarte / offers.txt
Last active October 8, 2019 13:32
Linkedin,recruitee
frontend developer|frontend engineer
data engineer|data engineer
linux support engineer|linux systems engineer
.net core engineer|.net core engineer
software engineer|software engineer
ios engineer|ios engineer
sales development representative internship|sales development representative internship
DevOps Engineer|linux systems engineer
Backend Software Engineer|linux systems engineer
Linux System Administrator|linux systems engineer
@JairoDuarte
JairoDuarte / provincias-cidades.json
Last active August 12, 2021 22:38
Províncias e cidades de Angola
[
{
"name": "Benguela",
"cities": [
"Balombo",
"Benguela",
"Baia Farta",
"Bocoio",
"Catumbela",
"Chongoroi",
import sys
from pyspark import SparkContext
sc = SparkContext()
lines = sc.textFile(sys.argv[1])
word_counts = lines.flatMap(lambda line: line.split(' ')) \
.map(lambda word: (word, 1)) \
.reduceByKey(lambda count1, count2: count1 + count2) \
.collect()
var http = require('http');
//create a server object:
http.createServer(function (req, res) {
res.write('Hello World!'); //write a response to the client
res.end(); //end the response
}).listen(8080); //the server object listens on port 8080