Skip to content

Instantly share code, notes, and snippets.

View ranfis's full-sized avatar

Ramfis Sánchez ranfis

  • Santo Domingo, DR
View GitHub Profile
<?php
class Estudiante{
public $nombre="";
public $matricula="";
public $carrera="";
public $indice=0.0;
function __construct($nombre,$matricula,$carrera,$indice){
$this->nombre=$nombre;
$this->matricula=$matricula;
@ranfis
ranfis / Ej.3.7-1
Created January 23, 2015 02:35
Ejercicio 3.7-1 de "Introducción a la Investigación de Operaciones - Hillier,Liberman - Ed. 7" para la asignatura de Investigación de Operaciones 2.
<script>
var Z;
var I=[1,2]; // Producto
var J=["f","m"]; // Mes
var K=[1,2]; // Planta
var L=[1,2]; // Proceso
var M=[1,2]; // Region
// Demanda del producto i, en el mes j, en la region m
@ranfis
ranfis / a
Created September 14, 2014 04:38
from time import sleep
import RPi.GPIO as GPIO
GPIO.setup(13, GPIO.OUT)
GPIO.setup(15, GPIO.OUT)
GPIO.setup(16, GPIO.OUT)
while 1:
GPIO.output(13, False)
sleep(1)
GPIO.output(13, True)
sleep(1)

___ _
/ __`\\ ___ /`/
/ /_/ / _ __ /` _ `\\ / / __ _ _ __ __
/ _ ,-'/`,`\\ /`__>/  |_| // .`\\/._\\ /`_>/`_>/ / / /
/_/ \\_\\ \\__,_>_\\ \\ / ,___,'/ ^ /\\__>/_/ /_/ \\_`` /
<____// / | | `'~'` _____] |
/ / |_| <_______/
/_/
#!/bin/bash -xe
# Configuring git to show colors in console
git config --global color.ui true
# Add aliases for basic git commands
git config --global alias.cp cherry-pick
git config --global alias.all 'add --all'
git config --global alias.st 'status'
git config --global alias.sts 'status -s'
syntax enable
filetype plugin indent on
colorscheme kolor
set history=700 " Sets how many lines of history VIM has to remember
set autoread " Set to auto read when a file is changed from the outside
@ranfis
ranfis / Reader
Last active December 12, 2015 05:48
/*Definicion*/
#ifndef READER_H
#define READER_H
#include <iostream>
#include "string.h"
typedef unsigned int uint;
using namespace std;
class Reader{
public: