Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Jorge Ibarra jl-ib

🎯
Focusing
Block or report user

Report or block jl-ib

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jl-ib on github.
  • I am jl_ib (https://keybase.io/jl_ib) on keybase.
  • I have a public key ASA4PzDbAfTgFsVIEwYThLOpYWpdgMYf5o3JjBkpaY3MlAo

To claim this, I am signing this object:

View gist:90d58c8ecaf9b4f9d40491e354a4028a
// https://stackoverflow.com/questions/23752264/how-to-use-clone-to-make-parent-process-and-child-process-run-at-the-same-time
// https://www.youtube.com/watch?v=1NXECbHd8mA
// https://stackoverflow.com/questions/5255320/reason-for-segmentation-fault
#define _GNU_SOURCE
#include <stdio.h>
#include <sys/time.h>
#include <pthread.h>
#include <unistd.h>
#include <sched.h>
#include <sys/wait.h>
View gist:52882c5a1436f9c70c440c420b50659f
module PipelineRegister
#(
parameter N=32
)
(
input clk,
input reset,
input [N-1:0] DataInput,
output reg [N-1:0] DataOutput
View TOPLEVEL
/******************************************************************
* Description
* This is the top-level of a MIPS processor that can execute the next set of instructions:
* add
* addi
* sub
* ori
* or
* bne
* beq
@jl-ib
jl-ib / HanoiJorge.asm
Last active Mar 2, 2017
Towers of Hanoi implementation in MIPS, limited instruction set.
View HanoiJorge.asm
# Torre de hanoi recursivo, arquitectura de computadoras
# Integrantes:
# Jorge Luis Ibarra Borbas
# José Andrés Hernández Hernández
# Last modified: 01/03/2017
## ** NOTE: For easier visualization on Mars, the program is set to work only with 8 disks (the pointers
## start messing up with each other because they are set up to hold only 8 bytes), if you want to use a
## bigger n (disks), use different initial memory addresses for $s1, $s2, and $s3.
View analizadorLexReales.py
def main():
while (True):
print('Para salir del programa escriba -1 y enter')
string = str(input('Escriba el input\n>'))
if ('-1' in string):
print('Adios!')
break;
print(getRelationOperators(string))
print('\n\n')
@jl-ib
jl-ib / analizadorLexReales.py
Last active Feb 11, 2017
Analizador léxico
View analizadorLexReales.py
# Function definition
def getRelop(token):
state = 0
n = 0
output = ''
accepted = False
while(1):
# select current token
c = token[n]
if state == 0:
You can’t perform that action at this time.