Whatever happened to telling stories within stories?
Film crit HULK Oct. 12, 2016
HULK worries we're witnessing the death of episodic tv.
| import qualified Data.List as L hiding (nub) | |
| numUniques :: (Eq a) => [a] -> Int | |
| numUniques = length . nub | 
| module Shapes | |
| ( Point(..) | |
| , Shape(..) | |
| , surface | |
| , nudge | |
| , baseCircle | |
| , baseRect | |
| ) where | |
| data Point = Point Float Float deriving (Show) | 
| # sum | |
| def sum(lst): | |
| """[Number] -> Number | |
| Returns the sum of all elements of the list | |
| """ | |
| result = 0 | |
| for el in lst: | |
| result = result + el | |
| return result | 
| # | |
| # | |
| # fold | |
| # map | |
| # create a duplicate of the given list | |
| def dup(lst): | |
| result = [] | |
| for el in lst: | 
Data on the internet are broken up and passed around in what are called "packets":
On the Internet, the network breaks an e-mail message into parts of a certain size in bytes. These are the packets. Each packet carries the information that will help it get to its destination -- the sender's IP address, the intended receiver's IP address, something that tells the network how many packets this e-mail message has been broken into and the number of this particular packet. - Read the whole article at HowStuffWorks
In this MP, you're going to parse a "network packet capture" (a listing of packets), reassemble corresponding sets of packets into the original "messages" sent, and display the messages in a human-readable format.
| # | |
| # fold | |
| def sum_nums(lst): | |
| sum = 0 | |
| for el in lst: | |
| sum = sum + el | |
| return sum | 
| # given a list, remove successive duplicate elements | |
| def remove_succ_lst(lst): | |
| result = [lst[0]] | |
| prev = lst[0] | |
| for curr in lst: | |
| if ( prev != curr ): | |
| result = result + [curr] | 
| public class ExpressionTree { | |
| public static int eval(MyTreeNode root) { | |
| return 0; | |
| } | |
| } |