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 / 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
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 / 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.

@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 / 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 / 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 / main.cpp
Created September 26, 2019 18:24
stick game
#include <iostream>
using namespace std;
int main()
{
int player = 1;
int sticks = 1;
int selection;
@matteing
matteing / main.cpp
Last active October 11, 2019 17:56
lab #6 - prettyplots-functions
/*
Nombre: Sergio Mattei, Michael Terrefortes, Andres Rosner
ID: 801183252, 801189110, 801147305
Class/Seccion: CCOM 3033 SEC 001
Nombre de archivo: main.cpp
Descripción: This has all of the pretty plots with functions and using passing by reference.
*/
#include<iostream>
/*
Nombre: Sergio Mattei, Michael Terrefortes, Jasiel Rivera
ID: 801183252, 801186809, 801189110
Class/Seccion: CCOM 3033 SEC 001
Nombre de archivo: boxes_mattei.cpp
Descripción: This program shows a bunch of recursive boxes.
*/
#include "drawingWindow.h"
/// \fn void DrawingWindow::box(int x, int y, int sideLength, QColor c)