Skip to content

Instantly share code, notes, and snippets.

View manuel-delverme's full-sized avatar
😀

Manuel manuel-delverme

😀
View GitHub Profile
@manuel-delverme
manuel-delverme / ex9.c
Last active December 11, 2015 13:54
ex9.c
#include <stdio.h>
#include <stdlib.h>
#define N_ROWS 5
#define N_COLS 5
void main(){
char swamp[N_ROWS][N_COLS] = {
{'*' , '*', '.', '*', '.' },
{'.' , '.', '.', '.', '.' },
{'.' , '.', '*', '.', '*' },
{'.' , '*', '.', '*', '*' },
@manuel-delverme
manuel-delverme / GStreamer-1.0 some strings.sh
Created September 22, 2015 18:14 — forked from strezh/GStreamer-1.0 some strings.sh
GStreamer-1.0 personal cheat sheet
#!/bin/bash
# play YUV444 FULL HD file
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \
videoparse width=1920 height=1080 framerate=25/1 format=GST_VIDEO_FORMAT_Y444 ! \
videoconvert ! \
autovideosink
# play YUV422 FULL HD file
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \
#!/usr/bin/python
import networkx as nx
from datetime import datetime
import sys
import csv
import os
import random
import glob
from itertools import combinations
from collections import defaultdict
import networkx as nx
from collections import defaultdict
def get_percolated_cliques(G, k):
perc_graph = nx.Graph()
cliques = [frozenset(c) for c in nx.find_cliques(G) if len(c) >= k]
perc_graph.add_nodes_from(cliques)
# First index which nodes are in which cliques
membership_dict = defaultdict(list)