Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
########################################################################################################################
# The MIT License (MIT)
#
# Copyright (c) 2016 Andrés Correa Casablanca
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
<?php
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Andrés Correa Casablanca <castarco@litipk.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
@castarco
castarco / SystemStatusReader.java
Created August 14, 2015 06:20
Simple class to read CPU and memory usage on *nix systems
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.lang.Process;
import java.lang.Runtime;
import java.util.HashMap;
/**
* SystemStatusReader is a collection of methods to read system status (cpu and memory)
*
package prop.g12.common;
import java.util.*;
/**
* This class represents non-directed weighted graphs without edges connecting nodes with themselves. The weights must
* be in the [0,1] interval, since they represent affinities between nodes in a normalized scale.
*
* This class is optimized for read operations, rather than write operations.
*
package prop.g12.common;
import com.google.common.collect.Sets;
import java.util.*;
/**
* This class encapsulates the Clique Percolation algorithm, used to detect overlapped communities inside non-directed
* and not weighted graphs.