Skip to content

Instantly share code, notes, and snippets.

View matteing's full-sized avatar
🤠
hey

Sergio Mattei matteing

🤠
hey
View GitHub Profile
@matteing
matteing / main_mattei_4.cpp
Last active September 26, 2019 02:51
CCOM4
/*
Nombre: Sergio Mattei
ID: 801183252
Class/Seccion: CCOM 3033 SEC 001
Nombre de archivo: main_mattei_4.cpp
Descripción: This program calculates the salary for employees based on a simple database format, and places results in another file.
Note:
I realize I went a little overboard centering things and making things all pretty...
I noted how in class you explained centering and using fixed window sizes to do that.
@matteing
matteing / header.cpp
Created September 16, 2019 04:28
CCOM Header
/*
Nombre: Sergio Mattei
ID: 801183252
Class/Seccion: CCOM 3033 SEC 001
Nombre de archivo: <arch>
Descripción: <desc>
*/
@matteing
matteing / readpassword.cpp
Last active September 16, 2019 04:29
CCOM Lab PasswordStrength
/*
Nombre: Sergio Mattei
ID: 801183252
Class/Seccion: CCOM 3033 SEC 001
Nombre de archivo: readpassword.cpp
Descripción: Este archivo contiene los algoritmos para clasificar un password en el programa de passwordstrength.
*/
/// \file
@matteing
matteing / !Simple_Deployment_Config.md
Last active June 29, 2019 15:20
A simple Makefile that allows deploying in parallel

This is essentially a simple tmux config to allow deploying in parallel.

@matteing
matteing / index.md
Created April 26, 2019 08:20
How to use Makerlog WebSockets

How to make your stuff realtime!

The endpoints you can use:

wss://api.getmakerlog.com/explore/stream/ -> All tasks from all users, in realtime
wss://api.getmakerlog.com/users/<int:pk>/stream/ -> All tasks from one user, in realtime
wss://api.getmakerlog.com/stream/?token=token -> The following feed, in realtime
wss://api.getmakerlog.com/notifications/?token=token -> Notification counts in realtime

Here's a list of events you can receive.

package com.belocl.beloclapp;
import android.app.*;
import android.content.*;
import android.os.*;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Scanner;
import android.support.v7.app.NotificationCompat;
@matteing
matteing / shell.py
Created June 15, 2016 23:21
Virtualenv SublimeREPL django shell
import os
import sys
import django
# The path to your project
path = '/home/sergio/Projects/alphasquare/alphasquare'
if path not in sys.path:
sys.path.append(path)
# Change to your project settings root