Skip to content

Instantly share code, notes, and snippets.

View MelulekiDube's full-sized avatar
😊
Focusing

MelulekiDube

😊
Focusing
View GitHub Profile
/**
*
* @author Meluleki Dube
*/
public class BinaryHeap {
private int heap[];
private int index;
/**
*
* @author dube_
*/
public class BinaryHeap {
private int heap[];
private int index;
#!/bin/sh
#SBATCH --account=icts
#SBATCH --partition=curie
#SBATCH --nodes=4 --ntasks=4
#SBATCH --time=60:00
#SBATCH --mem-per-cpu=1000
#SBATCH --job-name="mpiqsrt"
#SBATCH [email protected]
#SBATCH --mail-type=BEGIN,END,FAIL
//code adapted from http://mpitutorial.com/tutorials/mpi-send-and-receive/
#include <stdio.h>
#include <mpi.h>
#include <stdlib.h>
#define PING_PONG_LIMIT 8
int main(int argc, char *argv[]){
MPI_Init (&argc, &argv);//initilization
//find out the rank and size;
@inproceedings{Vanerio:2017:EAN:3098593.3098594,
author = {Vanerio, Juan and Casas, Pedro},
title = {Ensemble-learning Approaches for Network Security and Anomaly Detection},
booktitle = {Proceedings of the Workshop on Big Data Analytics and Machine Learning for Data Communication Networks},
series = {Big-DAMA '17},
year = {2017},
isbn = {978-1-4503-5054-9},
location = {Los Angeles, CA, USA},
pages = {1--6},
numpages = {6},
%
% The first command in your LaTeX source must be the \documentclass command.
\documentclass[sigconf]{acmart}
%
% \BibTeX command to typeset BibTeX logo in the docs
\AtBeginDocument{%
\providecommand\BibTeX{{%
\normalfont B\kern-0.5em{\scshape i\kern-0.25em b}\kern-0.8em\TeX}}}
#!/usr/bin/python3
import spidev
import time as time
import RPi.GPIO as GPIO
import atexit
# import socket programming library
import socket
#!/usr/bin/python3
# imports
import _thread
import spidev
import time as time
from array import *
from datetime import datetime, timedelta
import RPi.GPIO as GPIO
import atexit
/* we are going to use register r0 and r3 for indexes*/
/* we will then use register r4 and r5 as temporal registers*/
.global main
.func main
main:
MOV R0, #0 @ initialze index variable
mov r3, #0