Skip to content

Instantly share code, notes, and snippets.

View humberto-ortiz's full-sized avatar

Humberto Ortiz-Zuazaga humberto-ortiz

View GitHub Profile
@humberto-ortiz
humberto-ortiz / plang-story.md
Last active August 24, 2022 00:54
My language journey

Some programming languages I've written software in. Links (mostly) trace how I approached the language, not (necessarily) the historical ties between languages.

flowchart TD
  Basic --> Pascal
  Pascal --> Pascal
  Pascal --> C
  C --> C++
  C --> Lisp
  C --> Python
 C --> Asm
#!/bin/sh
# Random Student Generator
# Copyright 2017 - Humberto Ortiz-Zuazaga - humberto.ortiz@upr.edu
# Released under the GNU General Public License version 3 or later
# Read in a csv file named as an arugment
# (moodle grade report exorted as comma delimited plain text)
# skip one header line
# pick a random line
# extract field one and two (first and last name)

Keybase proof

I hereby claim:

  • I am humberto-ortiz on github.
  • I am humberto (https://keybase.io/humberto) on keybase.
  • I have a public key ASBBc8s8IVF0k2T3Jgx1i1B4FDMO73CkpsZccZEW8EZeQQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am humberto-ortiz on github.
  • I am humberto (https://keybase.io/humberto) on keybase.
  • I have a public key ASBBc8s8IVF0k2T3Jgx1i1B4FDMO73CkpsZccZEW8EZeQQo

To claim this, I am signing this object:

@humberto-ortiz
humberto-ortiz / fact-subroutine.asm
Last active August 29, 2015 14:06
Full code for factorial subroutine example, works with QtSPIM and MARS
.text
.globl main
main:
subu $sp,$sp,32 # Stack frame is 32 bytes long
sw $ra,20($sp) # Save return address
sw $fp,16($sp) # Save old frame pointer
addiu $fp,$sp,28 # Set up frame pointer
li $a0,10 # Put argument (10) in $a0
jal fact # Call factorial function
;;;; chatbot.lisp - hook a random sentence generator to a jabber client
;;;; Copyright 2014 - Humberto Ortiz-Zuazaga - humberto.ortiz@upr.edu
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
;;;; All you need to know about lisp in one screen
;;;; Humberto Ortiz-Zuazaga <humberto.ortiz@upr.edu>
;;; The identity function takes one argument and returns it
(defun id (x) x)
;;; You can apply it to anything
(id 23.45) ; numbers
(id 'foo) ; symbols
(id "bar") ; strings
@humberto-ortiz
humberto-ortiz / README.md
Last active August 29, 2015 13:57
Simple line chart for SalHUD

Gist for a simple line chart for public health data from Puerto Rico.

Humberto Ortiz-Zuazaga humberto.ortiz@upr.edu

Part of SalHUD.

2014/03/31 - HOZ

Added x axis line, fixed labels.

@humberto-ortiz
humberto-ortiz / contig-0.svg
Last active January 3, 2016 19:59
IPython notebook for testing sequence assembly with NetworkX and publishing notebooks.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.