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
@JairoDuarte
JairoDuarte / gist:ec7e79c3635e05853b4a926635c414f6
Created November 30, 2020 10:45 — forked from Jbot29/gist:b84e5e2c6275d963f7f6
Ecommerce User Stories + Steps

#User Stories - Overview

  1. Authentication: User can signup/login/logout

  2. Items for sale: User can view lists of items for sale and search by name, filter by price.

  3. Shopping Cart: User can add items to shopping cart and the app remembers it next time you login. User can view all the items in their shopping cart. User can delete items in the shopping cart. Shopping cart uses an integer column to store "state".

  4. Checkout: User can fill in form and submit billing info. After submitting billing info, items in the shopping cart will move to a different "state".

@JairoDuarte
JairoDuarte / mongo-error-code.ts
Created November 7, 2020 14:20 — forked from rluvaton/mongo-error-code.ts
Mongo Error Code #mongo #ts
// Generated from https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err
// Extra not including
// class_error not inserted
export enum MongoErrorCode {
OK = 0,
INTERNAL_ERROR = 1,
BAD_VALUE = 2,
OBSOLETE_DUPLICATE_KEY = 3,
NO_SUCH_KEY = 4,
GRAPH_CONTAINS_CYCLE = 5,
This file has been truncated, but you can view the full file.
#EXTM3U
#EXTINF:-1 tvg-id="" tvg-name="---●★| NBA TV |★●---" tvg-logo="" group-title="NBA TV",---●★| NBA TV |★●---
http://vip.vprotv.com:25443/Mqjdjfbdhg/Z87DA7Q5DZ/110957
#EXTINF:-1 tvg-id="" tvg-name="|.NBA.| NBA HD" tvg-logo="" group-title="NBA TV",|.NBA.| NBA HD
http://vip.vprotv.com:25443/Mqjdjfbdhg/Z87DA7Q5DZ/110958
#EXTINF:-1 tvg-id="" tvg-name="|.NBA.| NBA Network" tvg-logo="" group-title="NBA TV",|.NBA.| NBA Network
http://vip.vprotv.com:25443/Mqjdjfbdhg/Z87DA7Q5DZ/110959
#EXTINF:-1 tvg-id="" tvg-name="|.NBA.| NBA TV CALIFORNIA" tvg-logo="" group-title="NBA TV",|.NBA.| NBA TV CALIFORNIA
http://vip.vprotv.com:25443/Mqjdjfbdhg/Z87DA7Q5DZ/110960
#EXTINF:-1 tvg-id="" tvg-name="|.NBA.| NBA TV HD" tvg-logo="" group-title="NBA TV",|.NBA.| NBA TV HD

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

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
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()
@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",
@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 / 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 / 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