This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Factorial | |
(defun factorial (n) | |
(if (= n 1) | |
1 | |
(* n (factorial (- n 1)))) | |
) | |
; Fibonacci | |
(defun fib (n) | |
(if ( < n 2 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-content padding hide-tabs class="welcome center_v"> | |
<div class="content"> | |
<h2 text-center padding>Welcome</h2> | |
</div> | |
</ion-content> |