Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
sudo apt-get update
clear
echo "--------------UPDATED--------"
sudo apt-get install default-jdk
clear
java -version
echo "-------------JAVA INSTALLED----"
@Jamesasj
Jamesasj / basic_motion_detection_opencv_python.py
Created October 6, 2019 13:16 — forked from pknowledge/basic_motion_detection_opencv_python.py
Motion Detection and Tracking Using Opencv Contours
import cv2
import numpy as np
cap = cv2.VideoCapture('vtest.avi')
frame_width = int( cap.get(cv2.CAP_PROP_FRAME_WIDTH))
frame_height =int( cap.get( cv2.CAP_PROP_FRAME_HEIGHT))
fourcc = cv2.VideoWriter_fourcc('X','V','I','D')
@Jamesasj
Jamesasj / ag_onemax.cpp
Created June 15, 2016 21:47 — forked from marcoscastro/ag_onemax.cpp
Algoritmos Genéticos - Problema OneMax
// Algoritmos Genéticos - Problema OneMax
#include <iostream>
#include <vector>
#include <stdlib.h>
#include <time.h>
using namespace std;
// parâmetros do algoritmo genético
int tam_genes = 100; // quantidade de genes