Skip to content

Instantly share code, notes, and snippets.

View guillermoSb's full-sized avatar
🧠
Always Learning

Guillermo Santos guillermoSb

🧠
Always Learning
  • Guatemala
View GitHub Profile
@guillermoSb
guillermoSb / Programas.lisp
Created February 15, 2022 03:39
Lisp Fase 01
; Factorial
(defun factorial (n)
(if (= n 1)
1
(* n (factorial (- n 1))))
)
; Fibonacci
(defun fib (n)
(if ( < n 2 )
@guillermoSb
guillermoSb / Interfaces.java
Created January 27, 2022 14:27
Interfaces para la HT02 de Estructuras de Datos
/**
* Defines all the methods that a Stack should have.
* @param <E> Type of the items stored on the Stack. Example: String
*/
public interface Stack<E> {
/**
* Add an item to the stack. Will be popped next.
* @param item
*/
public void add(E item);
@guillermoSb
guillermoSb / Radio.java
Last active January 18, 2022 16:35
Radio Interface
/**
* Defines all the methods that a Radio should have.
*/
public interface Radio {
/**
* Get the current state of the radio.
* @return boolean indicating if the Radio is on.
*/
public boolean isOn();
@guillermoSb
guillermoSb / welcome.html
Created December 29, 2017 14:13
Vertical alignment of content in ionic 2+
<ion-content padding hide-tabs class="welcome center_v">
<div class="content">
<h2 text-center padding>Welcome</h2>
</div>
</ion-content>