Skip to content

Instantly share code, notes, and snippets.

View JosmanPS's full-sized avatar

José Manuel Proudinat JosmanPS

View GitHub Profile
15-F-0540_MQ-4C_Triton_SAR_Dec_2014.PDF
"The MQ-4C Triton Unmanned Aircraft System (MQ-4C Triton) is an integrated System of Systems and a force multiplier for the Joint Force and Fleet Commander, enhancing battlespace awareness and shortening the sensor-to-shooter kill chain. The system provides multiple-sensor, persistent maritime and littoral Intelligence, Surveillance and Reconnaissance data collection and dissemination as well as an airborne communications relay capability to Combatant Commanders, Expeditionary Strike Group Commanders, Carrier Strike Group Commanders, and other designated U.S. and Joint Commanders. The addition of a de-icing capability over the baseline Global Hawk provides operators with the capability to transition through icing conditions. The mission sensors installed on the MQ-4C Triton provide 360 degree radar and Electro -Optical/Infrared coverage. Additional functionality that optimizes the system for maritime search operations includes an Automatic Identification System and an
width = getWidth(picOriginal)
height = getHeight(picOriginal)
picCopy = makeEmptyPicture(width, height)
for x in range(0, width):
for y in range(0, height):
pixel = getPixel(picOriginal, x, y)
color = getColor(pixel)
copy_pixel = getPixel(picCopy, x, y)
@JosmanPS
JosmanPS / date-categorizers.js
Last active July 12, 2016 05:22
Some javascript classes to create a list of categories from a range of dates by year, month or day.
DateCategorizer = class DateCategorizer {
constructor(category_period, initial_date, final_date) {
this.period = category_period;
this.initial = initial_date;
this.final = final_date;
this.categorizer = this.categorizer_factory();
this.categories = [];
this.update_categories();
}
@JosmanPS
JosmanPS / random_id.R
Last active March 16, 2016 22:21
Función para crear un ID aleatorio con las especificaciones de Carito
random_id <- function() {
# Random string part
r_string <- rawToChar(as.raw(sample(65:90, 3, replace=T)))
# Random numeric part
r_num <- toString(sample(0:9, 4, replace=T))
r_num <- gsub(", ", "", r_num)
return(paste0(r_string, r_num, sep=""))
@JosmanPS
JosmanPS / interval.html
Last active August 29, 2015 14:22
Este es el código que hice para mi función probando fuera del proyecto. Pero no pude integrarla completamente :/
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1.0', {
'packages': [
'corechart',
'table',
'orgchart',
'controls'
@JosmanPS
JosmanPS / MEAN-Fedora.sh
Last active August 29, 2015 14:22
Installing requirements for MEAN development in Fedora
##############################################################################
#
# M O N G O D B
#
# Installing mongodb on Fedora 21
# Create the repo
su -
echo "[mongodb]
name=MongoDB Repository
@JosmanPS
JosmanPS / RegConfianza.m
Last active August 29, 2015 14:21
Método numérico para optimización con rengiones de confianza
function x = RegConfianza(fun, maxiter, tol, delta, DELTA, etha)
% ===========================================================
% METODO DE REGIONES DE CONFIANZA
%
% AUTHOR: Jose Manuel Proudinat Silva
% ID: 000130056
% COURSE: Analisis Aplicado
%
% DESCRIPTION:
@JosmanPS
JosmanPS / runLIST.sh
Last active August 29, 2015 14:21
Probar varios problemas en matlab desde shell
matlab_exec=matlab
for line in $(cat lista);
do
echo "LBFGS('$line', 200, 5, 1e-4);" >> runls.m;
done
${matlab_exec} -nojvm -nodisplay -nosplash -nodesktop < runls.m;
rm runls.m;
@JosmanPS
JosmanPS / fedInstall.sh
Last active August 29, 2015 14:19
My script for Fedora 21 install
# Update the kernel
sudo yum update -y
# Yumex
sudo yum install -y yumex
# Extra repositories
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'
sudo yum check-update